Hello, I need a little help.
I want to ensure that by creating my own script, I do what it takes to delete a user.
I think I have to play in different table to get there
Because I have to go through a cron script to remove users who do not renew their subscription.
And this can not be done directly in drupal because I have a payment system that does not returns me the information expires. The reason of my personal script.
But I want to delete everything exactly like I did in the drupal interface makes this choice when asked:
delete a user and delete all Submitted happy Including nodes and comments
HOW do I have to do this by php in the database?
Thanks a lot for your help
Comments
There is a user_delete API
There is a user_delete API which you can see here: https://api.drupal.org/api/drupal/modules%21user%21user.module/function/...
That is at least part of the job. You could also inspect the code around "modules/user/user.module, line 2480"for more information.
create a module
you need to create a module with the help of drupal api to do this.