code: @Override
      public void delete(@Nonnull String affinityGroupId) throws InternalException, CloudException {
          if(affinityGroupId == null || affinityGroupId.isEmpty())
              throw new InternalException("Cannot delete affinity group. Please specify the id for the affinity group to remove");
  
          AzureMethod method = new AzureMethod(this.provider);
          method.invoke("DELETE", this.provider.getContext().getAccountNumber(), String.format(RESOURCE_AFFINITYGROUP, affinityGroupId), null);
      }
docs: Deletes the affinity group from the cloud if the affinity group is not empty this method should error
  
  @param affinityGroupId the ID of the affinity group to be deleted
  @throws org.dasein.cloud.InternalException an error occurred within the Dasein Cloud implementation deleting the affinity group
  @throws org.dasein.cloud.CloudException    an error occurred within the service provider deleting the affinity group