wp post delete --force $(wp post list --post_type='revision' --format=ids)
Code language: Bash (bash)
Faster with SQL Query:
wp db query "DELETE FROM ${DB_PREFIX}posts WHERE post_type = \"revision\";"
Code language: Bash (bash)
Team Leader, JavaScript Lover, WordPress Engineer
wp post delete --force $(wp post list --post_type='revision' --format=ids)
Code language: Bash (bash)
Faster with SQL Query:
wp db query "DELETE FROM ${DB_PREFIX}posts WHERE post_type = \"revision\";"
Code language: Bash (bash)
Leave a Reply