Delete the enrollmentGroup information.
This method will remove the enrollmentGroup from the Device Provisioning Service using the
provided
EnrollmentGroup information. The Device Provisioning Service will care about the
enrollmentGroupId and the eTag on the enrollmentGroup. If you want to delete the enrollment regardless the
eTag, you can set the
eTag="*" into the enrollmentGroup, or use the
#deleteEnrollmentGroup(String)passing only the enrollmentGroupId.
Note that delete the enrollmentGroup will not remove the Devices itself from the IotHub.
If the enrollmentGroupId does not exists or the eTag does not matches, this method will throw
ProvisioningServiceClientNotFoundException.
for more exceptions that this method can throw, please see
ProvisioningServiceClientExceptionManager
Sample:
The follow code will delete the information about the enrollmentGroup "enrollmentGroupId-1".
// EnrollmentGroup information.}