code: def delete_device_enrollment(self, id, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('asynchronous'):
              return self.delete_device_enrollment_with_http_info(id, **kwargs)  # noqa: E501
          else:
              (data) = self.delete_device_enrollment_with_http_info(id, **kwargs)  # noqa: E501
              return data
docs: Delete an enrollment by ID.  # noqa: E501
  
          To free a device from your account you can delete the enrollment claim. To bypass the device ownership, you need to delete the enrollment and do a factory reset for the device. For more information, see [Transferring the ownership using First-to-Claim](/docs/current/connecting/device-ownership.html). <br> **Example usage:** ``` curl -X DELETE \\ -H 'Authorization: Bearer <valid access token>' \\ https://api.us-east-1.mbedcloud.com/v3/device-enrollments/{id} ```   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass asynchronous=True
          >>> thread = api.delete_device_enrollment(id, asynchronous=True)
          >>> result = thread.get()
  
          :param asynchronous bool
          :param str id: Enrollment identity. (required)
          :return: None
                   If the method is called asynchronously,
                   returns the request thread.