Steven seeks help deleting his Discourse account via the console after the forum admin refused his request and impersonated his account—something Steven finds uncomfortable. He’s not running the forum himself but has console access. jomaxro suggests a Rails command using UserDestroyer, which neil confirms and refines to target a specific user via User.find_by_username, using Discourse.system_user for system-level execution. michaeld questions whether admins can impersonate other admins, noting it shouldn’t be possible—but Steven clarifies he wasn’t an admin at the time and later confirms that developers with admin access can impersonate anyone, including admins. After testing, Steven reports success, thanking neil and jomaxro, calling it a relief. The thread highlights a gap in Discourse’s UI for account deletion by admins and the utility of console commands for edge cases.
I have a weird issue with a Discourse forum, and I didn’t fine a solution by myself: I installed a forum, I have access to the console but I don’t run it. I asked to the current admin to delete my account because I don’t want to be involve in this mess, but he refuses.
Usually I would be fine letting my account in a forum without using it, but the admin like to Impersonate every account (like mine, or discobot) to post weird stuff, and I really don’t like it. I tried to talk some sense with this person but I don’t trust him at all.
I would prefer to delete my account permanently. I didn’t find a way via Discourse with an admin account, or even a developper’s account (with the function Impersonate) to do it properly.
Is there a way to do it with the console, without messing up the database?
I know the basic stuff (./launcher enter app then rails c) but not the exact command to do.
@neil mentioned this command in a message earlier today. I’d wait for him to confirm this does what you’d like, and you’ll likely need to modify the command: