# dev.knotless.deleteTheme

> Deletes the dev.knotless.theme record from the account logged in to this appview's web pages. Those who chose it keep its colours, copied into their preferences. Requires the session cookie the pages' login sets.

- Kind: procedure
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.deleteTheme)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.deleteTheme/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.deleteTheme/analytics)

## Procedure (`dev.knotless.deleteTheme`)

Type: procedure · POST

### Input (application/json)

- `uri` (string · at-uri, required): The theme, one of the account's own.

### Output (application/json)


### Errors

- `InvalidRequest`: No theme of the account's own.
- `AuthenticationRequired`: No account is logged in to the pages, or its session has ended.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Deletes the dev.knotless.theme record from the account logged in to this appview's web pages. Those who chose it keep its colours, copied into their preferences. Requires the session cookie the pages' login sets.",
      "errors": [
        {
          "description": "No theme of the account's own.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "description": "The theme, one of the account's own.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Takes back a theme the account logged in to this appview's pages published.",
  "id": "dev.knotless.deleteTheme",
  "lexicon": 1
}
```
