dev.knotless.deleteAccountData

Deletes the asking account's knotless data a part at a time, as `knotless account delete-data` does: first the spaces of its private repositories, then each public repository as dev.knotless.deleteRepo deletes one, then whatever is left in its dev.knotless.* collections. Asked by the pages' session cookie, it deletes with the session the appview keeps for the account, up to `limit` records and spaces a call, and answers whether it is done; the pages ask again until it is, and a run cut short carries on where it stopped. Once nothing is left, the appview drops what it indexed from the account, as for one deleted at its PDS, keeping its takedowns and reports about it, and ends the account's sessions here, the pages' and MCP's, logging the browser out. Asked with a service token, as the command line asks once it has deleted the records itself, it deletes nothing, and forgets the account only once its PDS holds no knotless records. The atproto account itself, and other apps' records in it, are untouched. Only the account itself can ask.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Showing version bafyreifl4znvougat76yn2gqru3znnaxfwsmg6rqhbjfhtyozusveqs22a. Show the latest

Procedure

procedure · POST

Input

application/json

did

requiredstring · did

The account whose data goes: the one asking, named again so that no call deletes it by mistake.

limit

integer

The most records and spaces to delete in this call.

  • minimum: 1
  • maximum: 1000
  • default: 400

Output

application/json

deleted

requiredinteger

How many records and spaces this call deleted.

  • minimum: 0

done

requiredboolean

Whether nothing is left: the appview has then forgotten the account, and logged it out.

Errors

AuthenticationRequired

No account asks, or the pages' session for it has ended.

Forbidden

The account asking is not the one named.

RecordsRemain

Asked with a service token while the account's PDS still holds knotless records: delete them first.

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.

  • 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

  • What knotless data the asking account holds, before it deletes it.

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

  • Deletes everything the AppView holds for the authenticated user.