deleteUser(): Add option to delete user-owned files
#15424
Unanswered
imageck
asked this question in
Feature Requests
Replies: 1 comment
|
I use this method to do what you describe with a trigger function and cron task... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, if a user owns any object in the storage, their account is not allowed to be deleted. The way to do it right now is by using triggers, cron jobs and such. This is not a trivial task, nor is it seamless.
Ideally,
deleteUser()should accept an option akin toshouldSoftDelete, perhaps even named similarly, e.g.shouldHardDelete. From there on, there is a couple of options:ownercolumn fromstorage.objects, marking those files for deletion at a later point, e.g. by a cron job.All reactions