social.grain.server.getAccountDeletionPlan

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 begins. The app commits each plan at the viewer's PDS and asks again; an empty plan means nothing is left, and the app then calls social.grain.server.deleteAccount with a service token. Requires auth.

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

Query

query · GET

Output

application/json

writes

requiredarray

The next deletes, in the order they go: each a com.atproto.repo.applyWrites#delete in the viewer's repository. Empty once nothing is left.

  • maxLength: 200
itemsref
Reference

Errors

AuthenticationRequired

No account asks.

#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.

  • Deletes every grain record from the asking account, then has grain forget it.

  • Delete the authenticated user's Grain account. Removes all of their Grain records from their PDS and clears supporting server-side state (mutes, preferences, push tokens, OAuth session). Reports and labels are preserved.

  • 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.re

  • Deletes every knotless record from the asking account, then has the appview forget it.

  • Erases the requesting user's Colibri data held by this AppView. This does not touch the user's repos, which only they control.