WordPress

How to delete a WordPress site

This tutorial explains how to delete a WordPress site both through Softaculous or Cpanel.After reading this tutorial, you will learn how to remove your site files and database in a few steps using two different methods. Both methods are officially acceptable and will completely delete your site.

All instructions described in this tutorial include screenshots, making it easy for all user levels to apply them.

Before starting with this tutorial, consider seriously backing up your site. You can find instructions to backup and restore your site in this link.

Note: Removing your site using Softaculous is only possible if you installed your site using Softaculous. If you installed WordPress manually, jump straight to the next section for instruction to remove it from Cpanel.

Deleting a WordPress site through Softaculous:

This section explains how to fully remove your WordPress website using the Softaculous Manager included in many hosting interfaces like Cpanel, Plesk or DirectAdmin.

I’m using Cpanel for this tutorial, but except for the first step, the rest are the same for Plesk and Direct Admin.

To begin, login to your Cpanel/Plesk/DirectAdmin account and find the WordPress Manager by Softaculous. Press it.

The Softaculous manager will show your domain name. In case you have more than a domain name, it will show a list including all of them.

Next to the domain name of the site you want to remove, you will see a black navigation arrow; press it to show all available options, including your site removal.

At the bottom of the next screen, you will see the “Remove” button. Press it.

In the first section of the next screen, select the three options to remove the site directory, database and user, as shown in the screenshot below. Then scroll down.

When scrolling down, you will see the Remove Installation button; press it to proceed with the site deletion.

A confirmation pop up will show up; press the OK button to finally remove your site.

As you can see below, your site will be fully removed.

Deleting a WordPress site through Cpanel:

This section shows how to remove your WordPress site using Cpanel.

To begin, login to your Cpanel account and press the File Manager icon as shown in the following image. The white arrow shows the search field you can use to find it fast.

Press the File Manager icon to access your site files.

Once in the File Manager, find the file wp-config.php, right-click it and press the View option as shown in the following screenshot.

You need to find the line define( ‘DB_NAME’, ‘YourDatabasename‘,); Where YourDatabasename is your database, copy and save it safely and go back to the File Manager. In my case, the database name is venteany_wp612.

In the File Manager, select the Select All option.

Then, right-click your files and press the Delete option.

A confirmation request will show up; press the Confirm button to proceed with your site deletion.

Once confirmed, all your site files will be removed, as you can see below. Still, you need to remove your database, as explained in the following steps.


To remove your site database, go back to the Cpanel main screen and press the MySQL Database icon.

If you have only one site, you will see a unique database. If you have many sites, you will see a list of them.

Remember your database name is the one you copied from the wp-config.php file. Find the database of the site you removed and press the Delete button as shown in the following image.

You will be requested to confirm the operation, press the Delete Database button.

As you can see, your database was removed.

Removing a WordPress site using FTP:

This section shows how to remove your site files using an FTP client. For this tutorial, I will use the Filezilla FTP client.

It is important to clarify this section shows how to remove your site files, but you can’t remove your database through FTP. To remove your database, you will need to follow some of the steps described previously, but not before following the steps of the current section.

To begin deleting your WordPress files using an FTP client, connect to your server with your FTP credentials. Then, find the file named wp-config.php, right-click it and press the View option. This will download the file to your computer.

Once downloaded, open the file and find the line containing “define( ‘DB_NAME’, ‘YourDatabase‘ );”, where YourDatabase is your database name, which you will need later to remove. In my case, the database name is stavuzzl_wp129.

Once you safely save the database, you can proceed by removing your site files.

In Filezilla, press Ctrl+A to select all files. Then right-click and press the Delete option as shown below.

A confirmation request will show up. Press Yes to remove your site files.

That’s how you delete your WordPress site files from an FTP client. Now you can remove your database by following the steps described here.

Conclusion:

Removing a WordPress site is extremely easy, as you can see. Especially if you installed WordPress using Softaculous, which allows you to automate your site removal. Yet, even if you didn’t use Softaculous, the other two methods are easy to implement; they are really intuitive. All WordPress users can do this task in a few steps, as described above. As I said in the introduction, it is really worth it to backup your site before deleting it; you can use tools like WP-All In One Migration or similar plugins; you can also backup your site manually by downloading the database and the zipped files. Always remember that deleting only your site files isn’t considered removing your entire site; you need to delete the database.

Thank you for reading this article explaining how to delete a WordPress site; I hope it was useful to you. Keep following Linux Hint for more WordPress professional tips and tutorials.

About the author

David Adams

David Adams is a System Admin and writer that is focused on open source technologies, security software, and computer systems.