Skip to content

Instantly share code, notes, and snippets.

@anytizer
Last active March 26, 2016 09:23
Show Gist options
  • Save anytizer/34652f3081c0ef6fb2b8 to your computer and use it in GitHub Desktop.
Save anytizer/34652f3081c0ef6fb2b8 to your computer and use it in GitHub Desktop.
Wipe out WP_ tables from current database
SELECT
CONCAT('DROP TABLE `', t.table_name,'`;') drop_sql
FROM information_schema.TABLES t
WHERE
t.table_schema = DATABASE()
AND t.table_name LIKE 'wp\_%'
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment