# garden.lexicon.admin.takeDownIdentity

> Take down an identity: denylist its DID, delete its records from the index, take down every sandbox it owns, delete its DNS entries and end its sessions. It can't sign in afterwards. Requires a service-auth token from a DID in Lexicon Garden's admin list.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.takeDownIdentity)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.takeDownIdentity/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.takeDownIdentity/analytics)

## Procedure (`garden.lexicon.admin.takeDownIdentity`)

Type: procedure · POST

### Input (application/json)

- `did` (string · did, required)
- `note` (string, required): Why, for the moderation log.
  - Constraints: minLength: 1, maxLength: 3000

### Output (application/json)

- `schema` (ref)
  - Reference: `garden.lexicon.admin.defs#moderationAction`

### Errors

- `InvalidRequest`: The note is empty or the DID isn't one.
- `Forbidden`: The token's issuer isn't an admin.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Take down an identity: denylist its DID, delete its records from the index, take down every sandbox it owns, delete its DNS entries and end its sessions. It can't sign in afterwards. Requires a service-auth token from a DID in Lexicon Garden's admin list.",
      "errors": [
        {
          "description": "The note is empty or the DID isn't one.",
          "name": "InvalidRequest"
        },
        {
          "description": "The token's issuer isn't an admin.",
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "note": {
              "description": "Why, for the moderation log.",
              "maxLength": 3000,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "did",
            "note"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "garden.lexicon.admin.defs#moderationAction",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "garden.lexicon.admin.takeDownIdentity",
  "lexicon": 1
}
```
