delete #
Deletes a device.
See also the document:delete API action.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:index/devices/:_id[?refresh=wait_for][&source]
Method: DELETE
Other protocols #
{
"index": "<index>",
"controller": "device-manager/device",
"action": "delete",
"_id": "<deviceId>"
}
Kourou #
kourou device-manager/device:delete <index> --id <deviceId>
Arguments #
index
: Tenant index name
Optional: #
refresh
: if set towait_for
, Kuzzle will not respond until the document is removed from the search indexessource
: if set totrue
Kuzzle will return the entire deleted document body in the response.
Response #
Returns information about the deleted device:
_id
: device unique identifier_source
: deleted device source, only if optionsource
is set totrue
{
"status": 200,
"error": null,
"index": "<index>",
"controller": "device-manager/device",
"action": "delete",
"requestId": "<unique request identifier>",
"result": {
"_id": "<deviceId>",
"_source": "<deleted document>" // If `source` option is set to true
}
}
Edit this page on Github(opens new window)