social.grain.gallery.deleteGallery

Delete one of the logged-in account's galleries with what hangs off it: its items, the photos they place that no other of the account's galleries does, those photos' EXIF, and the account's own favorite of it and comments on it, children first, at the account's PDS and from the index before answering. What others wrote about it stays theirs. For the web, by its session cookie, from a page of the site; a service token is refused (the apps commit social.grain.gallery.getDeletionPlan's deletes at their own PDS, then call social.grain.sync.refreshRecords).

Repository @grain.social did:plc:e7rftrdyz5e2rw4y6ocszew2 namespace authority
Details · procedure
Kindprocedure
Authoritygallery.grain.social
Commit rev3n2uheawjdgxx
Indexed
cid bafyreidhmvuua4ao4vwr3md7556zuic2xoaqbvlurakjmebz5m6x6wja4q

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Delete one of the logged-in account's galleries with what hangs off it: its items, the photos they place that no other of the account's galleries does, those photos' EXIF, and the account's own favorite of it and comments on it, children first, at the account's PDS and from the index before answering. What others wrote about it stays theirs. For the web, by its session cookie, from a page of the site; a service token is refused (the apps commit social.grain.gallery.getDeletionPlan's deletes at their own PDS, then call social.grain.sync.refreshRecords).",
      "errors": [
        {
          "description": "The account has no gallery of that key.",
          "name": "NotFound"
        },
        {
          "description": "Called with a service token, or from another site.",
          "name": "Forbidden"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "rkey": {
              "description": "Record key of the gallery to delete.",
              "format": "record-key",
              "maxLength": 512,
              "type": "string"
            }
          },
          "required": [
            "rkey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.gallery.deleteGallery",
  "lexicon": 1
}