Skip to main content

Delete a device

Request

Delete a device. Once a device is deleted, it will no longer show up in your list of devices.

Before deleting a device, you must delete all associated data.

Security
ApiKey(Required scopes: devices.delete)
Path
nameOrIdstringrequired

Device name or ID. Device names must be URI-encoded if they contain non-URI-safe characters. If a device is named with another device's ID, the device with the matching name will be returned.

Query
projectIdstring

Filter devices by project

Python
from foxglove.client import Client

token = "<YOUR API TOKEN HERE>"
client = Client(token=token)

client.delete_device(device_id=device_id)

Responses

Success

Bodyapplication/json
idstringrequired

The ID of the deleted device

Response
{ "id": "string" }