How to Permanently Delete A WordPress Website

how to permanently delete a wordpress website

If you are looking to free up space on your hosting server you can do all the work within a few minutes by following steps described below.   There could be many different reasons why you may need to free up your hosting space:

  • Number of files (hosting servers are usually limited to 100.000 files).
  • The hosting account is already hosting multiple websites and you want to delete some of them.
  • There’s already a WordPress installation in your root folder and you want to remove it in order to install and/or migrate a new website.

Step #1 WordPress Files

cpanel wp config file and folders

Log in to your hosting account and find a file manager.  Open up the file manager and the first thing you should do is to download a file called wp-config.php. Hover over the file, do a right click and select download.  Once you downloaded the file, now select all WP related files and folders such as wp-content, wp-includes, wp-admin etc.. do a right click and delete all of them.

~ If you are hosting multiple websites on 1 hosting server, usually the websites are categorized within the folders with the same domain name.   If the website name is arizona-archery.com for instance, enter the folder named like that and delete everything.

Step #2 The Database

cpanel mysql databases

In order to know what’s your database name, open up the wp-config.php file you just downloaded with a Notepad or any other text editor and find a line similar to this one:

define( ‘DB_NAME’, ‘wpexpert_wp766’ );

In this case, wpexpert_wp766 is the database name.  If you are using cPanel (hosting panel), navigate to MySQL Databases feature, find the database you want to delete and click delete.  If your hosting server do not have cPanel, you can always find some sort of database management tool on the server.  Usually it will be named like MySQL, Databases or PHPMyAdmin.

phpmyadmin database management tool