Erase everything a sensor recorded
reset_device_dataErases what one sensor recorded: every measurement it ever posted, the radios it overheard, its own event log and its settings overrides. The measurements are deleted from disk, not archived, so nothing brings them back and any room this sensor was paired to loses that stretch of its history. The sensor itself stays claimed and keeps reporting from now on. PitCanary keeps this for the account owner or an admin signed in to the dashboard: an API key is refused it whatever its access, so through this server the answer says where to do it rather than doing it. It takes two calls: the first changes nothing and returns what will happen with a confirm token, and the second, with the same arguments and that token, does it. To move hardware to another room, unpair through manage_device is the change that keeps the history. Requires a PitCanary account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>"
},
"name": "reset_device_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Leave this out on the first call. That call changes nothing and returns a sentence saying what will happen plus a confirm token. Pass the token here, unchanged and with the same other arguments, only after the person has said yes to that sentence. | |
| device_id | Yes | The device id, as returned by list_devices. |