Deletes a device (server object) from the organization.

NOTE: The associated command queue will be purged. Any pending custom commands for the device are removed.

SecuritybearerAuth
Request
path Parameters
id
required
integer

Server ID for the specified device

query Parameters
o
required
integer

Organization ID for the specified device

Responses
204

Delete Successful

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

503

Service Unavailable

default

Invalid Request

delete/servers/{id}
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{ "Authorization" = "Bearer $apiKey" }
$url = "https://console.automox.com/api/servers/123456?o=0000"
Invoke-WebRequest -Method Delete -Uri $url -Headers $headers
Response samples
application/json
{
  • "errors": [
    • "string"
    ]
}