How to Completely Reset Your WordPress Website Without a Plugin

It’s not always ideal, but occasionally you’ll need to completely reset WordPress to its original state. Before blindly jumping to use a plugin, it’s important that you understand exactly what it means to reset WordPress.

Understanding the ins and outs of a WordPress installation (and what needs to be reset!) will help ensure that you’re making smart decisions in your development process. Sometimes your chosen reset plugin doesn’t work as expected and you’ll need to clean up manually, for example. Being able to do this ensures that you’ll be able to quickly rectify the situation. If you use Managed WordPress Hosting don’t forget to speak to your host first.

In this article, you’ll learn about when and why you might want to reset WordPress. Then, we’ll walk you through the necessary steps for manually resetting a WordPress website. Let’s get started!

Why You May Need to Reset WordPress

The WordPress dashboard.

To reset WordPress means to put all its files and databases back to the original installation state. It is effectively taking an existing WordPress website and installing it from scratch using what’s already there.

There are a few reasons you may need to fully or partially reset your WordPress website, such as:

  1. Rebuilding or repurpose the website.
  2. Restoring the site from a backup.
  3. Cleaning out a test installation.

Resetting a WordPress website is essentially uninstalling existing settings and reinstalling the original defaults. This is possible to do by deleting everything and starting over. However, you may find yourself in a situation where you need to do a partial reset, so it’s handy to understand the breakdown of steps so you can pick and choose what you need. For example, you may want to reset the database but keep all your downloaded plugins intact.

Similarly, you can accomplish a lot of manual tasks using plugins like Reset WP or even WP-CLI. We find it’s always a good idea to understand the fundamentals even when using these tools. It’s similar to learning how long division works before using the calculator — you’ll better understand what you’re doing even if you eventually automate the process. Knowing how to check your work can save a lot of time and hassle if something goes wrong.

Now, you’ll learn what it takes to reset your WordPress website without a plugin.

How to Reset Your WordPress Website Without a Plugin

Resetting your WordPress website will involve having direct access to your files and database. This means you’ll need a few tools and logins to get started:

  1. Your File Transfer Protocol (FTP) username and password.
  2. FTP software, such as FileZilla.
  3. Database access, such as through phpMyAdmin or within cPanel.

If you’re not completely sure you want to lose all of your content and settings forever, you may also want to take a complete backup of your website, using a plugin such as UpdraftPlus. Be sure to save the backup somewhere off of the server, because you’ll be deleting everything. Now, all you need to do is follow these steps. Let’s get started!

Step 1: Delete the Database

The first step is to delete your database. This is important because it’s where all of your settings and content lives. Without this step, you’ll be stuck with everything you already have, which isn’t conducive to starting afresh.

Deleting the database will completely remove your content and settings from WordPress. We cannot stress enough that you need to be absolutely certain you are ready to lose all of your data before moving forward.

First, log into cPanel. From here, you should be able to find your list of MySQL databases under the Databases > MySQL Databases section:

cPanel's Databases section.

On this page, you should find a list of your existing databases. Some hosts name their databases differently but typically include the prefix wp somewhere within the database name.

The Current Databases tab.

Identify your WordPress database, and copy and paste the name into a text file somewhere safe. Then, you can delete it by clicking the Delete button from the Actions column. This will completely wipe out your old WordPress database.

Step 2: Create a New Database

While you’ve just deleted the old database, it’s vital to set up a new one. Without a database, your WordPress website will not be able to load and you will not be able to access the dashboard to create any new content.

Once your old database is gone, it’s time to create a new one and set it up for WordPress. You should still be within the cPanel database page, so find the Create a New Database section. Here, you’ll complete the database name so it matches the old one:

cPanel's Create a New Database screen.

After clicking Create Database, the page should refresh and you’ll see the name pop up again under the Current Databases area. Next, find the Add a User to a Database section. You’ll need to add the old user with its permissions to the newly created database. Select the matching database and username in the drop-down menus and click Add User.

The Add a User to Database screen.

If you can’t find the old user, you may need to create it manually. This is easily possible under the Add a New User section. If possible, use the same username and password as the old database user. You can usually find these in your website’s wp-config.php file.

In your FTP program, navigate to your website’s public_html folder. From here you should see the WordPress root files. Right click on wp-config.php and choose View/Edit within your FTP program:

The wp-config.php file.

You don’t need to edit anything once you’re looking at the file. Instead, find the credentials for your old database user under MySQL Settings in the file.

wp-config's Settings.

Once you have these credentials, you can use them to recreate the correct user in MySQL. Don’t forget to follow the prior directions and add the user to the database once you’ve created it!

Step 3: Remove Unnecessary Files

With a clean database, you are now left with all the plugins, themes, and uploads you added to the old website. It’s important that you remove these, or you’ll have tons of unnecessary bloat on your new website. This isn’t preferable on a fresh site.

Now that your database is cleared up, you’ll want to turn your attention to your WordPress files. Most WordPress files remain the same between installations. What you’ll want to address are unique additions, such as plugins, themes, and media. These all exist within the wp-content folder.

You can delete these via FTP. Log in using your favorite FTP application, and navigate to your WordPress’ root directory under public_html. Find the wp-content folder and navigate inside.

At this point, you should see plugins, themes, and uploads folders. You may also see a few others. Select every folder except for themes and delete them all.

Folders highlighted, apart from the themes folder.

Next, navigate inside the themes folder. Choose the theme you’d like to keep, such as WordPress’ Twenty Seventeen. Select every theme folder except for your chosen theme, and remove them from the server.

All themes highlighted, apart from the twentyseventeen folder.

At this point, you have now wiped out all unique elements related to your WordPress website. The database is completely empty, and all unique files have been removed. All that’s left is to reinstall WordPress from scratch!

Step 4: Run the WordPress Installation Script

At this point, everything in your WordPress site is sanitized and cleaned out. Unfortunately, if you leave it at this stage, you’ll not have a functional website — you need to rerun the WordPress installation script.

Finally, you’re ready to revert WordPress back to its default settings. You can load up the installation script by adding /wp-admin/install.php to the end of your domain name. You’ll need to pick out a few settings, such as language and your new login information:

The WordPress installation screen.

Without this process, your database is completely blank. If you don’t run this script, WordPress will be unable to function. Once you’ve filled in the entire form, you can click Install WordPress. You’ll be greeted with a welcome message:

WordPress' success message.

Simply click Log In and you’ll be on your way with a new WordPress website! This will regain your access to the site, and you’ll be working with a completely clean slate.

Resetting WordPress

Resetting your WordPress website may not be the most thrilling task, but it is a good skill to have in your repertoire for fixing broken websites and cleaning up unnecessary files. Even if you use a plugin, it gives you the power to understand what is going on underneath the hood when resetting everything from scratch.

In this article, you learned how to do this manually in four steps:

  1. Delete the WordPress database.
  2. Create a new database.
  3. Remove unnecessary files.
  4. Run the WordPress installation script.

What questions do you have about resetting WordPress? Let us know in the comments section below!

New Posts in your inbox

  1. This is an excellent article. Really appreciate the insight and it was exactly what I was looking for. While other articles gave a quick fix to putting the website back in shape, you provided not only the steps but the reasoning behind it so that a newbie like my self can learn to be more hands on building the site while learning.

    I loved how you also mentioned the partial reset because had I used the plugin I would have lost all my data. I only wanted to remove the site settings. The article help me to clean up my site while allowing me to know what contents I want to keep. Many thanks for the knowledge

  2. Thank you, you understood my issue !!
    It was too late for me because I broke my website (haha !!) but I did saves before so I did your step in the other side. It was so easy, but there are not french article that explain things like this…

  3. This is an excellent resource. I have followed the instructions and have no issue to bring the new site up. In step 2, instead of deleting the database and creating a new one, I just deleted all the tables of the database. I kept the database name and database login credentials. the result would be the same. However, I had used phpAdmin to manage my database though.
    Thank you very much!

  4. Great article, saved me hours of wasted time re-uploading and re-installing WP time after time on a limited internet connection whilst troubleshooting a WP migration. Many Thanks!

  5. This was simple and helped me setup my staging site 100% fresh. I know this is an old post, but I really appreciate you doing this little walkthrough. I’m glad I found this. Thanks.

  6. John, your article was a HUGE help – after attempting to build my first website for a business I just started, I completely derailed not only the website, but my ability to log in to WP to undo everything I did. Now I’m back on the dashboard and ready to try again. Thank you, John!!

  7. Thank you sooooo much, your article is really clear and easy to follow, it helps me to clean up a client’s old and messy wordpress which I was having problem installing anything because something was wrong in the database file. After following your instructions step by step, I am able to properly install everything. p.s. I did have to manually create a “plugins” folder under wp-content in order to smoothly install new plugins. But other than that, this is very great article, thank you !!

  8. I think the most realistic scenario is to clean WP database but keep content or other settings that are needed. Great guide btw.

  9. Excellent guide. For those who are facing an issue in which you can’t install any plugins do the following:

    This is the error that I got when I tried to install any plugin:
    “Update Failed: Could not create directory.”
    The fix:
    1. Go to cPanel
    2. Go to your File Manager
    3. Navigate yourPath >> public_html >> wp-content
    4. Create a new folder called “plugins”

    Done and dusted

  10. Once I got to step 4, I received this error “You appear to have already installed WordPress. To reinstall please clear your old database tables first.”. All my DB info is deleted per the previous steps. Any suggestions?

  11. I followed every step and seemed to be fine until I tried the login at the end, and then I wasn’t able to view my page or dashboard, and now the files don´t display even though the database seems to exist and it did the installation process

  12. I would only suggest to not to delete the entire folders of wp_content (especially uploads), just did it and had a problem with permissions for uploading media. I re-created the folder uploads, but the permissions were corrupted, found a fix with 3 ways to fix it, but still none of those worked and finally I had to restore the backup. I believe deleting the content of each folder is easier than fixing the permissions later.

  13. thank you very much. With your help i’ve done my work. this an excellent articale. this is very helpful for wordpress begginer. Thanks again.

  14. Hi, thanks for the great article. Really appreciate it and helped to reset my wordpress.. and the most importants, it’s work.

  15. A very simple and easy to follow guide which all went very smoothly.
    The key to this appears to be the database step, which I followed religiously.
    Many thanks indeed!