Home
Support Forums

Identity event triggered when user is deleted

I would like to know if there is a function that is triggered when a user is deleted from the Netlify/Identity UI?
On this page i can find various triggers, unfortunately not the one i need… I would like to use it to make some database cleanup.

Thanks in advance!

Hi @APerc,

There’s no such event (yet) probably because it’s not possible for a user to delete themselves as opposed to signup/login. In most cases, a user will be deleted either by some admin method in a serverless function or from the admin UI. If you delete a user using a serverless function, you can manage the database in the same function too. However, when deleting it from the admin UI, you can’t trigger a function.