delete_item

To delete an item, use the item/delete_item method.

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>,        
    "reason": {              
        "type": <int>,       
        "text": <string>
    }
}

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 The item doesn’t exist, the user doesn’t have the Delete object access right to it, or the billing account doesn’t allow deleting it.
4 Wrong input parameters.

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