# garden.lexicon.admin.takeDownSandbox

> Take down a garden.lexicon sandbox: denylist its prefix, delete its _lexicon DNS records and every indexed schema under it, and refuse republish and renew. The name stays assigned to its owner. 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.takeDownSandbox)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.takeDownSandbox/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:akhgi4ekkeaupiqsis6g2gqg/garden.lexicon.admin.takeDownSandbox/analytics)

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

Type: procedure · POST

### Input (application/json)

- `note` (string, required): Why, for the moderation log.
  - Constraints: minLength: 1, maxLength: 3000
- `pet` (string, required): The sandbox's pet name, like sly-fox-123456.
  - Constraints: maxLength: 128

### Output (application/json)

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

### Errors

- `InvalidRequest`: The note is empty or the name isn't a pet name.
- `NotFound`: No sandbox has that name.
- `Forbidden`: The token's issuer isn't an admin.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Take down a garden.lexicon sandbox: denylist its prefix, delete its _lexicon DNS records and every indexed schema under it, and refuse republish and renew. The name stays assigned to its owner. Requires a service-auth token from a DID in Lexicon Garden's admin list.",
      "errors": [
        {
          "description": "The note is empty or the name isn't a pet name.",
          "name": "InvalidRequest"
        },
        {
          "description": "No sandbox has that name.",
          "name": "NotFound"
        },
        {
          "description": "The token's issuer isn't an admin.",
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "note": {
              "description": "Why, for the moderation log.",
              "maxLength": 3000,
              "minLength": 1,
              "type": "string"
            },
            "pet": {
              "description": "The sandbox's pet name, like sly-fox-123456.",
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "pet",
            "note"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "garden.lexicon.admin.defs#moderationAction",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "garden.lexicon.admin.takeDownSandbox",
  "lexicon": 1
}
```
