# party.whey.writeproxy.admin.clearCallers

> Emergency removal of all callers from one delegation. The operator can remove callers for abuse but must not add them. Requires a reason.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.clearCallers)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.clearCallers/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.admin.clearCallers/analytics)

## Procedure (`party.whey.writeproxy.admin.clearCallers`)

Type: procedure · POST

### Input (application/json)

- `delegation` (string, required)
  - Constraints: maxLength: 128
- `reason` (string, required)
  - Constraints: maxLength: 256

### Output (application/json)

- `callerRevision` (integer, required)
  - Constraints: minimum: 0
- `delegation` (ref, required)
  - Reference: `party.whey.writeproxy.defs#delegation`
- `removed` (integer, required)
  - Constraints: minimum: 0

### Errors

- `NotOperator`: No description in schema.
- `DelegationNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        },
        {
          "name": "DelegationNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delegation": {
              "maxLength": 128,
              "type": "string"
            },
            "reason": {
              "maxLength": 256,
              "type": "string"
            }
          },
          "required": [
            "delegation",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "callerRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "delegation": {
              "ref": "party.whey.writeproxy.defs#delegation",
              "type": "ref"
            },
            "removed": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "delegation",
            "callerRevision",
            "removed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Emergency removal of all callers from one delegation. The operator can remove callers for abuse but must not add them. Requires a reason.",
  "id": "party.whey.writeproxy.admin.clearCallers",
  "lexicon": 1
}
```
