Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created May 15, 2013 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/5581347 to your computer and use it in GitHub Desktop.
Save wokamoto/5581347 to your computer and use it in GitHub Desktop.
[WordPress] SPAM コメントを強制的に全部消す SQL 文
delete from wp_comments
where comment_approved = 'spam';
delete from wp_commentmeta
where not exists (
select 'x' from wp_comments
where wp_comments.comment_ID = wp_commentmeta.comment_id
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment