English (change)
How do you clean a WordPress database of unwanted data, while retaining user or other select information?
Strip out the database using phpMyAdmin? Sure. But a lazier option? WordPress Suicide.
Suicide allows you, quicky and easily, to:-
[sniplet guvSellBox]
Unzip and upload wp-suicide.php to your plugins directory: /path/to/wordpress/wp-content/plugins
Activate the plugin from within your wp-admin Plugins page
Goto Manage > Suicide for the following screen…
Before running Suicide, I strongly advise backing up your entire database. I assume no liability, er, either way! Go careful.
You did back up your database, didn’t you?
OK. Goto Manage > Suicide
By default, a bunch of data is check-marked for deletion. Uncheck the data you want to preserve. Be careful here.
Click the “yes” button and you’ll be prompted one last time. This is the last chance to cancel.
Finally, a progress screen let’s you know what changes have been made to your database.
(I’ve blanked out this blog’s database prefix. Unless you’ve changed that, which you should for security reasons, they’ll say “wp_”.)
This screen also confirms that the plugin has been deactivated, so that you cannot mistakenly use it again.
If you do need it again, guess what, reactivate it!
What have I forgotten? Let me know. Your comments are valued …
kinai February 8th, 2009 at 1:52 am
just use phpmyadmin
the_guv February 9th, 2009 at 10:57 am
@kinai – sure, phpmyadmin is generally better, Suicide is a last resort. Hmmn, it really is generally not recommended!
the_guv November 24th, 2009 at 10:09 am
UPDATE: This plugin may have been disbanded. So hey, you will just have to use phpmyadmin! (You can try Googling for it though, as the developer may have just had a little holiday
)