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.
Details · query
| Kind | query |
|---|---|
| Authority | gallery.grain.social |
| Commit rev | 3n2uheawutqxx |
| Indexed |
Query
query · GETParameters
query stringThe viewer's gallery to delete.
Output
application/jsonErrors
NotFound
The viewer has no gallery by that URI.
TooManyWrites
Deleting the gallery takes more writes than one commit takes.
#delete
objectA record to delete from the viewer's repository, as com.atproto.repo.applyWrites#delete names it.
Properties
maxLength: 512
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
social.grain.gallery.deleteGallery
procedureDelete 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
-
social.grain.unspecced.deleteGallery
procedureDelete a gallery and all associated records (items, photos, EXIF, favorites, comments).
-
social.grain.group.deleteGallery
procedureWithdraw 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
-
social.grain.unspecced.deletePoolGallery
procedureWithdraw 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.