Delete a room
delete_roomRemoves a room, its settings and its link to the sensor that stood in it. The measurements themselves survive, because they are stored per device rather than per room, but the room's name, its described context and the record of which data came from it are gone. Archiving keeps all of that and is the better choice unless the room is being removed for good. 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. 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": {
"room_id": "<room_id>"
},
"name": "delete_room"
}
}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. | |
| room_id | Yes | The room id, as returned by list_rooms. |