Howto purge plenty of spam comments

Over the years plenty of spam comments piled up in’s database (around 2k). Deleting them all manually would have been a massive chore, but lately I found help in the disguise of wp cli (

Deletion of this many comments took me a few seconds:

 wp comment list --field=comment_ID --status=spam | xargs wp comment delete --force


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.