Script for deleting autodrafts, post revisions and trashed posts from multisite & buddypress


1. Backup database first.

2. Create a file in root wordpress directory, with the  code of https://github.com/lenasterg/wordpress-buddypress-multisite-maintainaince/blob/master/clean_unused_posts.php.
3. Did I say BACKUP database first?
4. Run the file  once.
5. Delete the file in order to avoid accidentally use.

 

Advertisements