1. First login to the server as root user
2. Then change to the website user with the following command. Note to change the kala13683 username with yours
sudo -i -u kala13683
3. Then run the following command
wp post delete $(wp post list --post_type='post' --format=ids)