# pet.trezy.forgetDevice

> Published by [trezy.pet](https://lexicon.garden/identity/did:plc:ollch4g7tes2reb5eceiwuol)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.forgetDevice)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.forgetDevice/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.forgetDevice/examples)

## Definitions

### `pet.trezy.forgetDevice`

**Type**: `procedure`

Delete one device's text style override. This is the cleanup half of per-device preferences: a browser whose local storage is cleared can no longer find its own row, so without a way to delete rows by hand they accumulate for ever. Acts on the caller's own space and can only ever delete the caller's own row.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `deviceId` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `error` | `string` | No | A stable machine code the client branches on — add codes, never rename them. `no-such-device` is NOT an error the player should see as a failure: deleting a row that is already gone got them what they wanted. |
| `deleted` | `boolean` | No |  |
| `message` | `string` | No |  |

## Raw Schema

```json
{
  "id": "pet.trezy.forgetDevice",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "deviceId"
          ],
          "properties": {
            "deviceId": {
              "type": "string",
              "maxLength": 64
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [],
          "properties": {
            "error": {
              "type": "string",
              "description": "A stable machine code the client branches on — add codes, never rename them. `no-such-device` is NOT an error the player should see as a failure: deleting a row that is already gone got them what they wanted.",
              "knownValues": [
                "not-authenticated",
                "no-such-device",
                "delete-failed"
              ]
            },
            "deleted": {
              "type": "boolean"
            },
            "message": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Delete one device's text style override. This is the cleanup half of per-device preferences: a browser whose local storage is cleared can no longer find its own row, so without a way to delete rows by hand they accumulate for ever. Acts on the caller's own space and can only ever delete the caller's own row."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
