Permanently delete a device (server object) from the organization. See Using Global API Keys for more information on permission and scope requirements. NOTE: The associated command queue will be purged. Any pending custom commands for the device are removed.
Delete Successful
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Service Unavailable
Invalid Request
$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
{- "errors": [
- "string"
]
}