Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save questionlp/1e74571169a1728b71bc78507cd1b39b to your computer and use it in GitHub Desktop.

Select an option

Save questionlp/1e74571169a1728b71bc78507cd1b39b to your computer and use it in GitHub Desktop.
Permanently Delete Mastodon Account from an Instance

Permanently Delete Mastodon Account from an Instance

Run the following account as the Unix account running the Mastodon instance:

RAILS_ENV=production bundle exec rails c

In the Rails shell, run the following command, replacing username with the actual local username to destroy and purge from the instance:

account = Account.find_local!('username')
account.destroy

Source: mastodon/mastodon#1175 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment