delete
To delete an app, use the apps/delete method.
Only the top user of the service can use this method in Wialon Hosting.
Endpoint
svc=apps/delete¶ms={
"id": <long>
}
Parameters
The request must contain the following parameters:
| Parameter | Description |
|---|---|
| id | App ID. You can get it using the apps/list method with "manageMode":1. |
When you delete an app, the system also deletes the app.<serviceName> service (the Display in menu:
Response
If the request is completed successfully, the response is returned in the following format:
[
<long>, /* ID of the deleted app */
null
]
If the request fails, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | Wrong input parameters. |
| 7 | Access denied: the user isn’t the top user of the service, or the service isn’t Wialon Hosting. This code is also returned if the app with the specified ID isn’t found or can’t be deleted. |