Created
June 16, 2019 09:00
-
-
Save lumpysimon/4761905133bc55c60fd71f3e852b0c27 to your computer and use it in GitHub Desktop.
MySQL commands to delete spam WordPress comments & commentmeta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from wp_comments where comment_approved='spam'; | |
delete from wp_commentmeta where comment_id not in (select comment_id from wp_comments); | |
delete from wp_commentmeta where meta_key like '%akismet%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment