Skip to content

Delete Device

DELETE
/users/{user_id}/devices/{device_id}
curl --request DELETE \
--url https://example.com/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/devices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Delete a device. Its app-usage history is kept but un-attributed (FK ON DELETE SET NULL) — the screen time stays; it just loses its machine label. Prefer archiving to keep the label.

user_id
required
User Id
string format: uuid
device_id
required
Device Id
string format: uuid

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}