How to completely delete Wordpress Site?

How can I completely delete the Wordpress site? I have selected delete the Wordpress site is still accessible even though it does not show in my Wordpress list.

Hello @USSocial

  1. Go to /home/ or wherever directory the website is and delete all the files and the folder if its a subdomain or directory in or out of public_html.

Do not delete public_html

  1. Delete rm -f /var/lib/mysql/wpwebsite_db

More traces and leftover files will remain but do not try to delete traces of wpwebsite in cyberpanel database.

I will create a bash script for this soon

1 Like

Some time delete function need to repeat like for there four time when site is big

1 Like