# ooo.bsky.hds.deleteRecord

> Published by [bsky.ooo](https://lexicon.garden/identity/did:web:bsky.ooo)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:bsky.ooo/ooo.bsky.hds.deleteRecord)
- [Documentation](https://lexicon.garden/lexicon/did:web:bsky.ooo/ooo.bsky.hds.deleteRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:bsky.ooo/ooo.bsky.hds.deleteRecord/examples)

## Definitions

### `ooo.bsky.hds.deleteRecord`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `repo` | `string` (at-identifier) | Yes |  |
| `rkey` | `string` (record-key) | Yes |  |
| `collection` | `string` (nsid) | Yes |  |
| `swapRecord` | `string` (cid) | No |  |

#### Errors

- **InvalidSwap**

## Raw Schema

```json
{
  "id": "ooo.bsky.hds.deleteRecord",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "repo",
            "collection",
            "rkey"
          ],
          "properties": {
            "repo": {
              "type": "string",
              "format": "at-identifier"
            },
            "rkey": {
              "type": "string",
              "format": "record-key"
            },
            "collection": {
              "type": "string",
              "format": "nsid"
            },
            "swapRecord": {
              "type": "string",
              "format": "cid"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidSwap"
        }
      ]
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
