If you want to delete the WordPress site from cPanel, it is a very easy and simple process as you just need to login to your cPanel control panel account. It is necessary to be cautious while doing so if you have multiple sites on the same hosting account. Make sure to verify many times before deleting any file, folder, database or username from your account. Otherwise, you may lose your valuable files or database.
Delete the WordPress Site from cPanel
In this article, we will explain how to delete the WordPress website from cPanel including files and databases. Given below are the few things you need to do if you want to completely delete your WordPress site from your cPanel account.
- Access to cPanel
- delete the correct database using cPanel
- delete correct database username that you added to your site database
- delete all WordPress files
Login to cPanel
Login to your cPanel account and look for the email from your hosting company to get login details. To quickly enter cPanel, you can type mydomain.com/cpanel in the browser URL bar. Insert your username and password to login to the cPanel dashboard.
Under the Files section, click File Manager. Click + symbol to open public_html. Now you can view all the data for your website. If you have multiple sites, check out the one that you want to delete.
Find the correct database and username
Before deleting your site, you need to verify the database name and username for your database. Double click on your site folder name to see all the files for your site.
Now right click on wp-config.php and click view.
Under MySQL database username, and the name of the database for WordPress, you can see the database name and database username for your website.
Delete Database and Database User
After you confirm the database and username, you are all set to delete them. From the cPanel homepage, click on MySQL Databases. You will be redirected to the respected page.
Simply click the delete button and confirm to delete your database and do the same to delete the username for this database.
Once you have deleted the database and username, you won’t be able to access your WordPress website, because WordPress requires a database to operate.
Type your domain name in the browser URL bar and you should notice error establishing database connection error. It suggests the database and username for this website have been deleted successfully.
Delete all files from cPanel
Click on the file manager, go to public_html. Right-click on your site folder name you want to delete and click delete link.
You will notice a confirmation message if you want to delete all the files. Click Yes.