Delete Device

delete

/mobile/system/locationManagement/devices/{id}

Deletes the device that matches the ID.

Permissions

Only team members with the MobileEnvironment_System role can access the Location Management API.

Request

Path Parameters
  • The ID of the device. This ID must be an existing device ID.

Back to Top

Response

Supported Media Types

204 Response

The location device was deleted successfully.

400 Response

Bad request.

Body ()
Root Schema : Error
Type: object
Title: Error
The error JSON object returned by Mobile Cloud Service.
Show Source
Nested Schema : o:errorDetails
Type: array
Minimum Number of Items: 0
List of the issues that cause the error. Included when the error is caused by multiple issues.
Show Source
Nested Schema : Error Detail
Type: object
Title: Error Detail
Show Source

404 Response

Device ID not found.

Body ()
Root Schema : Error
Type: object
Title: Error
The error JSON object returned by Mobile Cloud Service.
Show Source
Nested Schema : o:errorDetails
Type: array
Minimum Number of Items: 0
List of the issues that cause the error. Included when the error is caused by multiple issues.
Show Source
Nested Schema : Error Detail
Type: object
Title: Error Detail
Show Source
Back to Top

Examples

The following example shows how to delete a device by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -i
-X DELETE 
-u administrator@example.com:mypassword
-H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce"
http://fif.cloud.oracle.com/mobile/system/locationManagement/devices/30

Example of Response Header

The following shows an example of the response header, which indicates that the device was deleted:

204 NO_CONTENT
Content-Length: 0
Date: Thu, 21 Sep 2017 23:53:12 GMT
Back to Top