social.grain.repo.deleteRecord

Delete a record from the logged-in account's repo, at its PDS, and from the index before answering. Called as social.grain.repo.createRecord is.

Repository @grain.social did:plc:e7rftrdyz5e2rw4y6ocszew2 namespace authority
Details · procedure
Kindprocedure
Authorityrepo.grain.social
Commit rev3n2mx2lz5abbg
Indexed

Procedure

procedure · POST

Input

application/json

collection

requiredstring · nsid

A collection grain indexes.

rkey

requiredstring · record-key
  • maxLength: 512

swapCommit

string · cid

swapRecord

string · cid

Output

application/json

Errors

UnknownCollection

grain does not index the collection.

InvalidSwap

No description in schema.

ScopeMissingError

The account's PDS granted the session less than the write needs.

Similar lexicons

semantic match

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

  • Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.

  • Write a record in the logged-in account's repo, creating or replacing it, at its PDS, and index it before answering. Called as social.grain.repo.createRecord is.

  • Delete a record from a space. Callers can delete their own records; the space owner can delete any record (via a separate admin path).

  • Create a record in the logged-in account's repo, at its PDS, and index it before answering. For the web, by its session cookie, from a page of the site; a service token is refused (the apps write to their own PDS, then call social.grain.sync.refreshRecords).