I’m working on the automation of account deletion for my school. Basically, I’m scripting the deletion of a user’s system account, ldap info, Google account, etc. The goal is to have a (linux) command-line script that can be used to remove a user from the system.
When it comes to removing the user and blog from WordPress (3.0.1 w/multisite), I’m a little confused. Should I be trying to call wpmu_delete_blog() and confirm_delete_users() directly, or will that fail because I can’t authenticate from a script, and I have the wrong referrer? Is anyone else doing this in a sane (and secure) way? I’d prefer to not to depend too much on deep core functions, but I also don’t think it would be wise to just edit the database directly, either.
Any suggestions on approaches to this would be appreciated.
- The topic ‘Scripting MU blog deletion’ is closed to new replies.