Skip to content

Delete Device DELETE

Remove a device from your account. This action cannot be undone.

Endpoint

DELETE https://api.pocketalert.app/v1/devices/{tid}

Authentication

Required

Include one of these headers in your request:

  • Token: <your-api-key> — Get it from API Keys
  • Authorization: Bearer <jwt-token> — From Login

Request

Path Parameters

ParameterTypeRequiredDescription
tidstringDevice unique identifier

Headers

HeaderRequiredDescription
TokenYour API key
AuthorizationBearer <jwt-token>

Example Request

bash
curl -X DELETE "https://api.pocketalert.app/v1/devices/9dc24hqldvv2bfx2nlc6r" \
  -H "Token: your-api-key"
javascript
const tid = '9dc24hqldvv2bfx2nlc6r';
await fetch(`https://api.pocketalert.app/v1/devices/${tid}`, {
  method: 'DELETE',
  headers: { 'Token': 'your-api-key' }
});
python
import requests

tid = '9dc24hqldvv2bfx2nlc6r'
response = requests.delete(
    f'https://api.pocketalert.app/v1/devices/{tid}',
    headers={'Token': 'your-api-key'}
)
php
$tid = '9dc24hqldvv2bfx2nlc6r';
$response = Http::withHeaders([
    'Token' => 'your-api-key',
])->delete('https://api.pocketalert.app/v1/devices/'.$tid);

return $response->json();

Response

Success Response

200 OK

Device deleted successfully

json
{
  "data": "success"
}

Error Responses

StatusDescription
401Unauthorized — Invalid or missing token
404Not Found — Device does not exist

Note

After deleting a device, it will need to be re-registered through the mobile app to receive notifications again.

Pocket Alert Documentation