I will use the wp-cli version:
wp post delete –force $(wp post list –post_type=post –format=ids –year=2008 –posts_per_page=10000)
I added the –force so that it will delete the post and not just put them in the trash.
I will use the wp-cli version:
wp post delete –force $(wp post list –post_type=post –format=ids –year=2008 –posts_per_page=10000)
I added the –force so that it will delete the post and not just put them in the trash.