# pub.chive.sync.deleteRecord

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

## Definitions

### `pub.chive.sync.deleteRecord`

**Type**: `procedure`

Mark a record as deleted in Chive's index (owner or admin only)

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the record to mark as deleted |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the deleted record |
| `error` | `string` | No | Error message (if failed) |
| `deleted` | `boolean` | Yes | Whether deletion succeeded |

#### Errors

- **InvalidRequest**
- **AuthenticationRequired**
- **NotFound**

## Raw Schema

```json
{
  "id": "pub.chive.sync.deleteRecord",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uri"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the record to mark as deleted"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "deleted"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the deleted record"
            },
            "error": {
              "type": "string",
              "description": "Error message (if failed)"
            },
            "deleted": {
              "type": "boolean",
              "description": "Whether deletion succeeded"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Mark a record as deleted in Chive's index (owner or admin only)"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
