# pub.chive.governance.revokeDelegation

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.revokeDelegation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.revokeDelegation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.revokeDelegation/examples)

## Definitions

### `pub.chive.governance.revokeDelegation`

**Type**: `procedure`

Revoke an active PDS delegation. Only accessible to administrators.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `delegationId` | `string` | Yes | ID of the delegation to revoke |

#### Output

**Encoding**: `application/json`

#### Errors

- **AuthenticationRequired**
- **Unauthorized**
- **NotFound**

### `pub.chive.governance.revokeDelegation#delegationResult`

**Type**: `object`

Result of delegation operation

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `message` | `string` | Yes | Human-readable result message |
| `success` | `boolean` | Yes | Whether the operation succeeded |
| `delegationId` | `string` | No | Delegation ID |

## Raw Schema

```json
{
  "id": "pub.chive.governance.revokeDelegation",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "delegationId"
          ],
          "properties": {
            "delegationId": {
              "type": "string",
              "description": "ID of the delegation to revoke"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "Unauthorized"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "ref": "#delegationResult",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "description": "Revoke an active PDS delegation. Only accessible to administrators."
    },
    "delegationResult": {
      "type": "object",
      "required": [
        "success",
        "message"
      ],
      "properties": {
        "message": {
          "type": "string",
          "description": "Human-readable result message"
        },
        "success": {
          "type": "boolean",
          "description": "Whether the operation succeeded"
        },
        "delegationId": {
          "type": "string",
          "description": "Delegation ID"
        }
      },
      "description": "Result of delegation operation"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
