Delete specific policy object

Deletes a specific policy object for the authenticated user.

SecuritybearerAuth
Request
path Parameters
id
required
integer

Policy ID for the specified policy

query Parameters
o
required
integer

Organization ID for the specified policy

Responses
204

Successful Operation

400

Invalid Request

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/policies/{id}
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{ "Authorization" = "Bearer $apiKey" }
$url = "https://console.automox.com/api/policies/12345?o=0000"
$response = (Invoke-WebRequest -Method Delete -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "errors": [
    • "string"
    ]
}