Skip to content

Instantly share code, notes, and snippets.

@menslow
Created June 27, 2013 00:41
Show Gist options
  • Save menslow/5873095 to your computer and use it in GitHub Desktop.
Save menslow/5873095 to your computer and use it in GitHub Desktop.
TexExpander Snippet for dropping the default WordPress tables (without dropping the whole database). Complete with field for adding your table prefix.
DROP TABLE %filltext:name=prefix:default=wp:width=6%_commentmeta;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_comments;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_links;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_options;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_postmeta;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_posts;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_term_relationships;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_term_taxonomy;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_terms;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_usermeta;
DROP TABLE %filltext:name=prefix:default=wp:width=6%_users;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment