You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Describe the issue
Hello, I had accidentally registered an account on my self-hosted instance with a typo in the account's email, and I was wondering what the proper way to delete said account would be, since the Standard Notes client does not offer this, and the official Standard Notes instance uses its own separate page for account deletion. Is there an API endpoint or SQL command to completely delete an account's data, and if so, would it be possible for it to be documented?
The text was updated successfully, but these errors were encountered:
backup your data first! docker-compose exec db sh -c 'MYSQL_PWD=$MYSQL_ROOT_PASSWORD mysqldump $MYSQL_DATABASE' -- > backup.sql
spawn a mysql shell via docker-compose exec db sh -c 'MYSQL_PWD=$MYSQL_ROOT_PASSWORD mysql $MYSQL_DATABASE'.
(Optionally) If you created subscription.
DELETEFROM user_roles WHERE user_uuid = (SELECT uuid FROM users WHERE email="<YOUR_EMAIL>");
DELETEFROM user_subscriptions WHERE user_uuid = (SELECT uuid FROM users WHERE email="<YOUR_EMAIL>");
(Optionally) Delete Note History(revisions) if exists
DELETEFROM revisions WHERE item_uuid IN ( SELECT uuid FROM items WHERE user_uuid = (SELECT uuid FROM users WHERE email="<YOUR_EMAIL>") );
Delete Notes
DELETEFROM items WHERE user_uuid = (SELECT uuid FROM users WHERE email="<YOUR_EMAIL>");
Delete Login Sessions
DELETEFROM sessions WHERE user_uuid = (SELECT uuid FROM users WHERE email="<YOUR_EMAIL>");
Service Versions (please complete the following information):
Paste the output of
./server.sh version
. For example:Describe the issue
Hello, I had accidentally registered an account on my self-hosted instance with a typo in the account's email, and I was wondering what the proper way to delete said account would be, since the Standard Notes client does not offer this, and the official Standard Notes instance uses its own separate page for account deletion. Is there an API endpoint or SQL command to completely delete an account's data, and if so, would it be possible for it to be documented?
The text was updated successfully, but these errors were encountered: