# remove_device

**Remove Openbook from a phone or Mac**

Every user · destructive

Removes Openbook from one of the user’s phones, iPads or Macs, by its ID from [`my_devices`](https://withopenbook.com/docs/tools/my_devices): its Openbook contacts disappear at its next sync, the browser it was set up in is signed out of Openbook pages, and the user gets an email saying so. [`add_to_device`](https://withopenbook.com/docs/tools/add_to_device) adds it back.

## Parameters

| Parameter | Type | Required | Limits |
|---|---|---|---|
| `device` | `string` | required |  |

## Who can use it

Every user has it. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated **destructive**, so clients like ChatGPT ask the person before calling it.

## Errors

Errors carry a stable code and a message written for people. See [errors and their status codes](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/remove_device \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "device": "f6b1d8e3-2a7c-4d9f-9b5e-4c8a2f6d1b50"
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_device",
    "arguments": {
      "device": "f6b1d8e3-2a7c-4d9f-9b5e-4c8a2f6d1b50"
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
