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:

Copied!
svc=item/delete_item
&params={
    "itemId": <long>
}

To delete 10 or more units in Wialon Hosting, use the signature

Copied!
svc=item/delete_item
&params={
    "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.

Copied!
{ }

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.

If you find a mistake in the text, please select it and press Ctrl+Enter.