com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Unregistering an Android Device

DescriptionUse this REST API to unregister a specific Android device.
Resource Path/{deviceId}
URL/mdm-android-agent/enrollment/{deviceId}
HTTP MethodDELETE
Request/Response Formatapplication/json
cURL command
curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-android-agent/enrollment/{deviceId}
  • For more information on how to generate the <EMM_API_TOKEN>, see Generating the EMM API Token.
  • By default, <EMM_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <EMM_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.
  • {deviceId} - Provide the device identifier as the value of the device ID. For more information on retrieving the device ID, see Retrieving a Device ID.

Example: Unregister the Android device (device identifier - 867115026844132).

curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer e5c2ce5670b6f95e1514f4f9e722a722" -k -v https://localhost:9443/mdm-android-agent/enrollment/867115026844132
 Sample output
> DELETE /mdm-android-agent/enrollment/867115026844132 HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8| zlib/1.2.5
> Host: localhost:9443
> Accept: */*
> Content-Type: application/json
> Authorization: Bearer e5c2ce5670b6f95e1514f4f9e722a722
> 
< HTTP/1.1 200 OK
< Date: Wed, 16 Mar 2016 01:14:57 GMT
< Content-Type: application/json
< Content-Length: 79
< Server: WSO2 Carbon Server
< 
{"responseCode":"Accepted","responseMessage":"The device has been removed successfully"}
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.