Support account deletion
Open, NormalPublic



Users should be able to completely delete their account, like any sane service.


  • API
  • Web


Add a deleteUser func that takes a User and bool on whether or not to delete all the user's posts. Should remove all user traces from:

  • unsetpasswords
  • accesstokens
  • oauth
  • users
  • usererrors

Removes collection traces:

  • collections
  • collectionemails

Removes posts if user wanted it:

  • posts

Deletes external accounts when they're entirely based on logging in with, e.g. currently.

  • apps

Event Timeline

matt raised the priority of this task from Normal to High.Feb 4 2018, 9:38 PM
matt added a project: Restricted Project.

More users have requested this lately. This is especially important for those who want to limit their digital footprint, a major thing for privacy-conscious users.

matt raised the priority of this task from High to Unbreak Now!.May 2 2018, 11:46 PM

Even more important now due to the GDPR.

matt lowered the priority of this task from Unbreak Now! to Normal.Oct 31 2018, 10:34 PM

Or... not so important. We should also send a Delete activity for federated blogs.

matt changed the visibility from "Restricted Project (Project)" to "All Users".Jun 2 2019, 11:25 PM
matt changed the edit policy from "Restricted Project (Project)" to "All Users".
matt added a project: WriteFreely.
matt changed the visibility from "All Users" to "Public (No Login Required)".Oct 30 2019, 2:27 PM

Note: implementation details are out of date and only apply to For implementation in WriteFreely, refer to [deleteAccount()]($2674) func in rW.

matt removed matt as the assignee of this task.Oct 30 2019, 3:55 PM

Looks like this function also already exists in writefreely under *datastore, but is still out of date and needs modification.

status update

list of writefreely tables modifed so far:

  • collectionattributes
  • collectionkeys
  • collectionpasswords
  • collectionredirects
  • remotefollows
  • collections
  • posts
  • accesstokens
  • userattributes
  • users
  • userinvites as an admin might delete a user and not want their friends signing up

PR for writefreely is up including CLI flags, next is to add things like federated deletes for all collections including default (i.e. username) and and posts if they are being deleted as well.