Delivery · removeDevice
Remove a device
DELETE /v1/devices/{id}
Stops push to that phone.
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The device's id (dev_…). · e.g. dev_01K7DA2B4D6F8H0K2M4P6R8T0V |
Example#
curl -s -X DELETE "https://api.logu.dev/v1/devices/dev_01K7DA2B4D6F8H0K2M4P6R8T0V" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
204
Removed.
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 500 | internal_error | Something went wrong on Logu's side. |