# social.colibri.beta.actor.deleteAccount

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.deleteAccount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.deleteAccount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.actor.deleteAccount/examples)

## Definitions

### `social.colibri.beta.actor.deleteAccount`

**Type**: `procedure`

Erases the requesting user's Colibri data held by this AppView. This does not touch the user's repos, which only they control.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `deleted` | `integer` | Yes | How many indexed records were removed. |

#### Errors

- **AuthRequired**: The request has no valid service auth.
- **SoleOwnerOfCommunity**: The user solely owns at least one community and must transfer or delete it before deleting their account.

## Raw Schema

```json
{
  "id": "social.colibri.beta.actor.deleteAccount",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request has no valid service auth."
        },
        {
          "name": "SoleOwnerOfCommunity",
          "description": "The user solely owns at least one community and must transfer or delete it before deleting their account."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "deleted"
          ],
          "properties": {
            "deleted": {
              "type": "integer",
              "description": "How many indexed records were removed."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Erases the requesting user's Colibri data held by this AppView. This does not touch the user's repos, which only they control."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
