social.grain.gallery.getDeletionPlan

Plan the deletion of one of the viewer's galleries with what hangs off it, as social.grain.gallery.deleteGallery deletes it: its items, the photos they place that no other of the viewer's galleries does, those photos' EXIF, and the viewer's own favorite of it and comments on it, children first, then the gallery. What others wrote about it stays theirs. Answered as the deletes of one com.atproto.repo.applyWrites, for an app to commit at the viewer's PDS all or none, then call social.grain.sync.refreshRecords with their URIs. A plan more writes than one commit takes is refused, never split. Requires auth.

Repository @grain.social did:plc:e7rftrdyz5e2rw4y6ocszew2 namespace authority
Details · query
Kindquery
Authoritygallery.grain.social
Commit rev3n2uheawutqxx
Indexed

Query

query · GET

Parameters

query string

Output

application/json

writes

requiredarray

The deletes, children first, the gallery last: each a com.atproto.repo.applyWrites#delete in the viewer's repository.

  • maxLength: 200
itemsref
Reference

Errors

NotFound

The viewer has no gallery by that URI.

TooManyWrites

Deleting the gallery takes more writes than one commit takes.

#delete

object

A record to delete from the viewer's repository, as com.atproto.repo.applyWrites#delete names it.

Properties

collection

requiredstring · nsid

rkey

requiredstring · record-key
  • maxLength: 512

Similar lexicons

semantic match

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

  • 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 t

  • Delete a gallery and all associated records (items, photos, EXIF, favorites, comments).

  • Withdraw the viewer's own gallery from a group's pool. The gallery, its photos and the items joining them are the viewer's records in the viewer's repo, held inside the group's space, so this removes them from that space and nothing else. Only the author's own repo is touched: whoever acts as the group evicts by a different route.

  • Plan the next part of deleting the viewer's grain data, for an app to delete at the viewer's own PDS: the deletes of one com.atproto.repo.applyWrites, of the viewer's records in every social.grain.* collection their PDS lists, read from the PDS rather than grain's index, so that records grain never indexed go too. Collections go in the order social.grain.server.deleteAccount deletes them, what hangs off a gallery before the gallery and the profile last, and one is exhausted before the next begin

  • Withdraw the viewer's own gallery from a group's pool. The gallery, its photos and the items joining them are the viewer's records in the viewer's repo, held inside the group's space, so this removes them from that space and nothing else. Only the author's own repo is touched: whoever acts as the group evicts by a different route.