After_delete_account

I’m looking for something like after_create_account, but for after a user deletes their account. We have a custom authentication plugin that stores some information in a database table on a new account creation. When they delete their account I want it to then delete that database info. Is there an event I can use in a plugin for this purpose?

Here’s what you’re looking for:

https://github.com/discourse/discourse/blob/master/app/models/user.rb#L1516-L1519

2 Likes