How do I manually delete a WordPress installation?

We recommend deleting all unnecessary WordPress installations as they can become outdated and vulnerable to hackers. Follow the steps below to delete a WordPress installation manually.

Note: If you installed WordPress with our 1-click-installation tool, you can delete it easily through the one.com Control Panel. Read our guide: How do I delete a 1-click WordPress installation?


Step 1 - Create a backup

Before you start, create a backup of your WordPress. It will allow you to restore your website if needed. There are various methods for creating a backup, and you can refer to one of these guides for assistance:


Step 2 - Delete the WordPress installation from your web space

Note: If your WordPress is located in a subdomain, check our guide for how to find its directory in File Manager: How to create a subdomain manually?

You can remove WordPress manually using the one.com File Manager via your Control Panel or an SFTP client. Here’s how to do it with the File Manager:

  1. Go to Files & Security > File Manager in your Control Panel.
    You can also access your File Manager via the direct link: https://filemanager.one.com
  2. Open the directory where your WordPress files are stored.
  3. Open the wp-config.php file.
  4. Locate the following entry to find your specific table prefix:
$table_prefix = 'wp_';
  1. Copy and paste your table prefix into a Word document or .txt file. You will need this information later.

    Note: The default database table prefix for WordPress is wp_, but your prefix might be different.

  2. Go to the root directory or the directory containing your WordPress files.
  3. Select all files connected to the specific WordPress installation you want to delete.

    Note: If your WordPress installation is in a subfolder, simply delete the folder that contains all of the files.

  4. Click Delete at the top right. 
    Screenshot of the WordPress files in File Manager.

Step 3 - Remove WordPress from your database

After removing WordPress files from your web space, you need to delete the WordPress data from your database.

  1. First, follow this guide to create a backup of your database: How do I make a backup of my database?
  2. Make sure you have the table prefix which you retrieved in Step 2.3.

    Note: When dropping tables, only do so for those with the same prefix, especially when using a single database for multiple WordPress websites.

  3. Then follow our separate guide for detailed instructions: How do I delete tables from my database?

Step 4 - That’s it!

That’s all! You have now successfully deleted your WordPress installation from your web space and the database.


Related articles:

Was this article helpful?

Can’t find what you are looking for?

Start a chat

It's the quickest way to get in touch, every day of the year.

Give us a call

Available on weekdays from 10am to 2pm (UTC).