> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-caio-pizzol-docs-ai-core-preset.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# authorities.remove

> Remove a table-of-authorities block from the document.

## Summary

Remove a table-of-authorities block from the document.

* Operation ID: `authorities.remove`
* API member path: `editor.doc.authorities.remove(...)`
* Mutates document: `yes`
* Idempotency: `non-idempotent`
* Supports tracked mode: `no`
* Supports dry run: `yes`
* Deterministic target resolution: `yes`

## Expected result

Returns an AuthoritiesMutationResult indicating success or a failure.

## Input fields

| Field             | Type                   | Required | Description                      |
| ----------------- | ---------------------- | -------- | -------------------------------- |
| `target`          | object(kind="block")   | yes      |                                  |
| `target.kind`     | `"block"`              | yes      | Constant: `"block"`              |
| `target.nodeId`   | string                 | yes      |                                  |
| `target.nodeType` | `"tableOfAuthorities"` | yes      | Constant: `"tableOfAuthorities"` |

### Example request

```json theme={null}
{
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "tableOfAuthorities"
  }
}
```

## Output fields

### Variant 1 (success=true)

| Field                  | Type                   | Required | Description                      |
| ---------------------- | ---------------------- | -------- | -------------------------------- |
| `authorities`          | object(kind="block")   | yes      |                                  |
| `authorities.kind`     | `"block"`              | yes      | Constant: `"block"`              |
| `authorities.nodeId`   | string                 | yes      |                                  |
| `authorities.nodeType` | `"tableOfAuthorities"` | yes      | Constant: `"tableOfAuthorities"` |
| `success`              | `true`                 | yes      | Constant: `true`                 |

### Variant 2 (success=false)

| Field             | Type    | Required | Description       |
| ----------------- | ------- | -------- | ----------------- |
| `failure`         | object  | yes      |                   |
| `failure.code`    | string  | yes      |                   |
| `failure.details` | any     | no       |                   |
| `failure.message` | string  | yes      |                   |
| `success`         | `false` | yes      | Constant: `false` |

### Example response

```json theme={null}
{
  "authorities": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "tableOfAuthorities"
  },
  "success": true
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_TARGET`
* `CAPABILITY_UNAVAILABLE`

## Non-applied failure codes

* None

## Raw schemas

<Accordion title="Raw input schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "target": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "const": "block"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeType": {
            "const": "tableOfAuthorities"
          }
        },
        "required": [
          "kind",
          "nodeType",
          "nodeId"
        ],
        "type": "object"
      }
    },
    "required": [
      "target"
    ],
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw output schema">
  ```json theme={null}
  {
    "oneOf": [
      {
        "additionalProperties": false,
        "properties": {
          "authorities": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "block"
              },
              "nodeId": {
                "type": "string"
              },
              "nodeType": {
                "const": "tableOfAuthorities"
              }
            },
            "required": [
              "kind",
              "nodeType",
              "nodeId"
            ],
            "type": "object"
          },
          "success": {
            "const": true
          }
        },
        "required": [
          "success",
          "authorities"
        ],
        "type": "object"
      },
      {
        "additionalProperties": false,
        "properties": {
          "failure": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "details": {},
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "success": {
            "const": false
          }
        },
        "required": [
          "success",
          "failure"
        ],
        "type": "object"
      }
    ]
  }
  ```
</Accordion>

<Accordion title="Raw success schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "authorities": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "const": "block"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeType": {
            "const": "tableOfAuthorities"
          }
        },
        "required": [
          "kind",
          "nodeType",
          "nodeId"
        ],
        "type": "object"
      },
      "success": {
        "const": true
      }
    },
    "required": [
      "success",
      "authorities"
    ],
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw failure schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "failure": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "details": {},
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "success": {
        "const": false
      }
    },
    "required": [
      "success",
      "failure"
    ],
    "type": "object"
  }
  ```
</Accordion>
