com.atproto.repo.deleteRecord

atproto-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.",
      "errors": [
        {
          "name": "InvalidSwap"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collection": {
              "description": "The NSID of the record collection.",
              "format": "nsid",
              "type": "string"
            },
            "repo": {
              "description": "The handle or DID of the repo (aka, current account).",
              "format": "at-identifier",
              "type": "string"
            },
            "rkey": {
              "description": "The Record Key.",
              "format": "record-key",
              "type": "string"
            },
            "swapCommit": {
              "description": "Compare and swap with the previous commit by CID.",
              "format": "cid",
              "type": "string"
            },
            "swapRecord": {
              "description": "Compare and swap with the previous record by CID.",
              "format": "cid",
              "type": "string"
            }
          },
          "required": [
            "repo",
            "collection",
            "rkey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "commit": {
              "ref": "com.atproto.repo.defs#commitMeta",
              "type": "ref"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.atproto.repo.deleteRecord",
  "lexicon": 1
}

Validate Record

Validate a record against com.atproto.repo.deleteRecord

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6msi3pj7krzih5qxqtryxlzw
CID
bafyreibwdxbyhuuljujl7g4ylwdso2x2ov6yv6nk3ext3sr7kjvvubkula
Indexed At
2026-02-18 18:57 UTC
AT-URI
at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.deleteRecord

Referenced Schemas (1)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@