# pub.chive.admin.deleteContent

> 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.admin.deleteContent)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.admin.deleteContent/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.admin.deleteContent/examples)

## Definitions

### `pub.chive.admin.deleteContent`

**Type**: `procedure`

Soft-delete content from the index by URI and collection

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the content to delete |
| `reason` | `string` | No | Reason for deletion |
| `collection` | `string` | Yes | Collection NSID |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `success` | `boolean` | Yes | Whether the content was deleted |

#### Errors

- **AuthenticationRequired**
- **AdminRequired**
- **InvalidRequest**

## Raw Schema

```json
{
  "id": "pub.chive.admin.deleteContent",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "collection"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the content to delete"
            },
            "reason": {
              "type": "string",
              "description": "Reason for deletion"
            },
            "collection": {
              "type": "string",
              "description": "Collection NSID",
              "knownValues": [
                "pub.chive.eprint.submission",
                "pub.chive.review.comment",
                "pub.chive.review.endorsement",
                "pub.chive.eprint.userTag"
              ]
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "AdminRequired"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "success"
          ],
          "properties": {
            "success": {
              "type": "boolean",
              "description": "Whether the content was deleted"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Soft-delete content from the index by URI and collection"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
