Hello:
To accomplish with GDPR we need delete user account, profile, folder with documentation, avatar, etc from people with lastupdatedate older than 2 years, or people who never have logged in into the account.
I'm working in an Auto Action batch proccess triggered by a cron job:
- Global > Access: Registered.
-Action: Remove account (action to develope, see next paragraph).
- Advanced Filter > WHERE:
Code:
c.lastupdatedate = "0000-00-00 00:00:00" OR c.lastupdatedate < DATE_SUB(CURDATE(), INTERVAL -2 YEAR)
How I can develope the Remove account action? Maybe there are some programmatically substitution to do it? Or I must write a complex SQL action? I haven't found any system action to remove user profile in Auto Actions.
Thank you