# dev.knotless.removeEmail

> Takes the address's hash out of the dev.knotless.emails record of the account logged in to this appview's web pages, as `knotless account email remove` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.

- 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.removeEmail)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.removeEmail/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.removeEmail/analytics)

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

Type: procedure · POST

### Input (application/json)

- `schema` (ref)
  - Reference: `dev.knotless.addEmail#email`

### Output (application/json)

- `schema` (ref)
  - Reference: `dev.knotless.addEmail#emailState`

### Errors

- `InvalidRequest`: No email address.
- `AuthenticationRequired`: No account is logged in to the pages, or its session has ended.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Takes the address's hash out of the dev.knotless.emails record of the account logged in to this appview's web pages, as `knotless account email remove` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.",
      "errors": [
        {
          "description": "No email address.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.addEmail#email",
          "type": "ref"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.addEmail#emailState",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Takes back the claim to an email address of the account logged in to this appview's pages.",
  "id": "dev.knotless.removeEmail",
  "lexicon": 1
}
```
