WordPress Suicide
The latest version is 1.3, released November 3, 2007
This was a fun one to write. What if you wanted to start over again? Just wipe the slate clean and start blogging without any baggage. Well, that’s actually hard to do unless you’re comfortable using the mysql client on the command line (or phpMyAdmin).
So I whipped up a little plugin that does just that, and no more. Install it, activate it, and you’re just a single click away from blogging salvation (or is it purgatory?). In other words, this plugin gives you the power to delete all your blog posts from the database in one fell swoop. You can also use it to delete categories, comments, links, and custom fields, as well as users and blog settings. Here’s a screenshot:

Instructions
- For Wordpress v2.3 and up, download wp-suicide-1.3.zip (v1.3)
For WordPress v2.1.x–2.2.x, download wp-suicide-1.1.zip
For WordPress v2.0.x, download wp-suicide-1.0.zip - Unzip the file and upload wp-suicide.php to your plugins directory:
/path/to/wordpress/wp-content/plugins - Activate the plugin (don’t forget!)
- Goto Manage > Suicide (and contemplate your blogging fate)
Note: by default, this plugin will delete all content associated with your blog except users and settings. That way you’re left with a functional, though effectively empty blog. Consider backing up your blog before committing using WordPress Suicide. I assume no liability for data loss suffered through the use of this plugin. Use at your own risk!
In all seriousness, you might want to use this plugin if you recently imported your posts into WordPress from another blogging platform but something went wrong (or you were considering importing your Haloscan comments) and you want to start the import process over.
Update: If you want more nuanced crontrol over what particular records get deleted, say based on date or some other attribute, check out my SQL Executioner plugin. It allows you to send any SQL query/command to your WordPress database. If you don’t know SQL, no worries, just leave a comment with what you want, and I (or someone else) will respond with a query you can try.


I assume this only works if you’ve maintained the default MySQL prefixes in the DB setup.
Correct?