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