Hi guys, i have a button that a user presses to delete their account. i currently just have it delete the user, but this is a problem because after they delete themselves, their data still lives on causing problems (e.g. i have a feature that regularly does a database wide tally to update an “average user score” and it will still see this “ghost data”. There are various data types entries for a user that i need to delete. Then there’s the various scheduled backend workflow that need to be cancelled.
I could just add a delete this and this and that action each of the things i want deleted/cancel one-by-one. But there’s two problems with that: (1) it doesn’t take into account things (data types and schedules) that i might add later and so i might forget to also add these the cancel/delete workflow. I basically need to figure out how to build a “delete all this guys stuff and cancel all his workflows” action. That way i don’t have to worry about missing anything.
Any ideas?
Should i just delete the user then in the next action(s) do something that searches and destroys scheduled things with an empty user and any data entries with “deleted user” (across all data types). And if this is what i should do, how would it do it?