delete_item
The delete_item function is used to delete an item.
Endpoint
To delete objects in Wialon Hosting or Local, use the following signature:
svc=item/delete_item
¶ms={
"itemId": <long>
}
To delete 10 or more units in Wialon Hosting, use the signature
svc=item/delete_item
¶ms={
"itemId": <long>,
"reasons": [{"reason_key"}]
}
Parameters
Parameter | Description |
---|---|
itemId | ID of the item you want to delete. |
reasons | Array of unit deletion reasons. A reason is required when deleting 10 or more units in Wialon Hosting. For keys of deletion reasons and their descriptions, see account/delete_account. |
Returned result
If the request is successful, an empty JSON is returned.
{ }
If not, an error code is returned. Possible error codes:
Code | Description |
---|---|
7 | Failed to fetch the resource with the desired ACL (ADF_ACL_ITEM_DELETE) or billing account not allowed. |
4 | Wrong input parameters. |