Developer Guidelines
3.54.0
Search this version
Developer Guidelines
Developer Guidelines
METADEFENDER IT ACCESS APIs
Archived APIs
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Delete Devices v2.0
Copy Markdown
Open in ChatGPT
Open in Claude
| API version | 2.0 |
|---|---|
| Last Update | 08/19/2014 |
| Authentication | YES |
| Response Format | JSON |
| HTTP Method | POST |
| Rate limited | YES |
| Requests per rate limit | 10/min |
Use to delete devices on an account
API URL
https://gears.opswat.com/o/api/v2/devices/deleteRequest Parameters
| Key | Datatype | Parameter Type | Required | Description | Default |
|---|---|---|---|---|---|
| access_token | string | URL | Yes | access token which archived from OAuth authentication step | |
| opt | int | Body | Optional | 0 – Only uninstall client agent from device but keep the data in Cloud database 1 – Remove Cloud database entry for the device as well as uninstall the client agent from device 2 – Archive Cloud database entry for the device as well as uninstall the client agent from device | 1 |
| MAC_list | array<string> | Body | Optional | MAC addresses of devices you want to delete. Don't use this parameter if you already use HWID_list in the body | |
| HWID_list | array<string> | Body | Optional | HWIDs of devices you want to delete. Don't use this parameter if you already use MAC_list in the body |
Response HTTP Code
| HTTP Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad request |
| 401 | Unauthorized. Your access_token is invalid or expired |
Response Parameters
| Key | DataType | Description |
|---|---|---|
| result | array<int> | The result of batch delete operation. Result[i] value means that
|
Note: reasons cause failure in deleting a device
the cloud couldn't find any devices which reports the given MAC address or HWID
the given MAC address is invalid
Example
Example Request
https://gears.opswat.com/o/api/v2/devices/delete?access_token=TEST7P9ZMJ2LBF8AMOMJLFNPMMLO953AVQ4C9YFF52R61234 Posting data (by MAC address):{ "MAC_list" : ["00:0c:29:cd:c7:b2", "00:0c:30:cd:ff:b2"], "opt": 0} Posting data (by HWID):{ "HWID_list" : ["12ds44f5gacd52234", "cd7323a67effe2ab53"], "opt": 0}Example Response
{ "result": [0,1]}Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Delete Device v2.0Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
