WordPress commands
To activate the debug mode of WordPress, add the following PHP code in wp-config.php : define('WP_DEBUG', true); This SQL query remove all revisions of posts having the topic , reply and attachment type (tested on WordPress 3.1.x): DELETE child.* FROM wp_posts AS child LEFT JOIN wp_posts AS parent β¦