How to Reset Your WordPress Website (And Why You’d Want To)

Last Updated on January 10, 2023 by 17 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How to Reset Your WordPress Website (And Why You’d Want To)
Blog / Tips & Tricks / How to Reset Your WordPress Website (And Why You’d Want To)

Sometimes, the best possible move is to start over from zero, and that holds true even for WordPress websites. In some cases, simply starting from scratch will be much easier than reworking your site. However, the bad news is that WordPress doesn’t include a way to start over by default.

Fortunately, there are a few ways to return your website to its original state manually. In this article, we’re going to talk about why you may want to reset your WordPress website, then teach you three ways to do it. Let’s take it from the top!

When It’s a Good Idea to Reset Your WordPress Website

Everything that happens on your WordPress website gets recorded into its database. Resetting your website, therefore, is akin to cleaning out all of the records in the database – which means you get to start with a clean slate.

It’s not actually common to reset your WordPress website. However, there are plenty of situations where it’s warranted, for example:

  • You want to rebuild or repurpose your website. If you want to pull the plug on one of your sites, you can still use the installation for a new project.
  • If you can’t access your website and want to restore it from a backup. In some cases, you may get locked out of WordPress due to an error or a security breach. To fix things, you can roll your installation back to an earlier state, but you’ll need to access it first – something you can do after resetting it.
  • To clean up a test installation. If you regularly use either local or online WordPress setups for testing purposes, you’ll want to clean up after your experiments by resetting your setup.

In any case, it’s always a good idea to create a backup of your website before resetting it, even if you’re confident about your decision. You may change your mind at some point, or perhaps need to access some of the information you deleted. If that happens, you’ll be glad to have a backup ready. Although to be fair, you should already have multiple backups of it, unless you like to live on the edge!

How to Reset Your WordPress Website Using the Advanced WordPress Reset Plugin

The Advanced WordPress Reset plugin.

Despite what its name would imply, plugins don’t get much easier to use than Advanced WordPress Reset. As you recall, we talked about how resetting your website equals wiping its database clean, and that’s exactly what this tool does.

What’s more, it’s very quick and easy to use, which is our primary reason for choosing it. To reset your website, install and activate the plugin, then look for the new Advanced WP Reset tab under Tools on your WordPress dashboard:

Resetting your database.

From here, simply type reset into the only field in the page (to avoid accidents) and click on Reset database. You won’t see a confirmation message, but once you click on any of the other tabs on your dashboard, you’ll need to log in again, as your admin user has now been deleted and recreated.

It’s worth noting that this particular tool doesn’t remove your plugins or themes. You’ll need to go through both relevant tabs to deactivate and delete those you don’t want to keep. When that’s done, your website will be back to its original state.

How to Reset Your Website Using the WordPress Command Line (WP-CLI)

The WordPress Command Line homepage.

If you’re a developer, you’re probably familiar with WP-CLI. It’s a tool that enables you to interact with the platform using the command line via Secure Shell (SSH) access. More importantly, it enables you to carry out complex tasks using simple commands.

For example, WP-CLI users can reset their WordPress websites without having to install a plugin or do the process manually. While we’ll leave the installation to our previous piece (as it can be complex), once you’re ready, you’ll only need to enter the wp reset database command to carry out a reset. Of course, you’ll still need to clean up your plugins and themes as with the last method. However, it’s a great time saver if you’re already a WP-CLI user.

How to Reset Your WordPress Website Manually (In 4 Steps)

Plugins aren’t necessary for resetting your site. In fact, it can be done manually in four short steps. Let’s take a look!

Step #1: Access Your WordPress Database and Delete It

In most cases, your web host will enable you to access your database through your cPanel account (or a similar method). With that in mind, log into your cPanel now and look for the MySQL Databases option under the Databases section:

The MySQL Databases tool.

Click on it, and look for your WordPress database in the list. In most cases, it will start with the wp prefix, although this may change depending on your security practices or your web host’s settings:

A list of existing databases.

Once you’ve identified your database, take note of its name, then click the Delete button under Actions. However, don’t try to access your site again just yet. We’re going to need to create a new database to replace the old one, and your website won’t work until that’s done.

Step #2: Create a Brand New WordPress Database

At this stage, you should still be within cPanel‘s MySQL Databases tool. At the top of the page you’ll see an option to create a new database. Keep in mind that for this to work, you have to use the same name of the database you just deleted (which you hopefully copied earlier!):

Creating a new database.

Type it into the relevant field, click on Create Database, and it’ll be added to the main list at the bottom of the page. Now you need to recreate your admin user by scrolling down to the Add User to Database section of the page. There you’ll see two lists: one enabling you to choose from existing users, and another to indicate which database to add them to:

Adding an existing user to your new database.

If you can’t find your user here, you’ll need to add it manually to your new database by scrolling up to the Add New User menu:

Adding a new user to the database.

Remember that you need to use the exact same username and password your old database had, otherwise your wp-config.php file won’t recognize the new database. If you’re unsure of your credentials, you can find out by opening wp-config.php using an FTP client, such as FileZilla.

Just log into your website via FTP and access your WordPress root folder, which should be called either public_html, www, or named after your site. Inside you’ll find the wp-config.php file. Right-click on it and choose the View/Edit option:

Editing your wp-config.php file.

This will open the file using your default text editor. Don’t change anything once you’re in, just look for your database’s username and password. If you have problems finding them, look for the comment that reads /* *  MySQL Database Username  * / (both values will be right below). Once you have them, return to your cPanel and use the credentials to recreate your old admin user.

Your database should now be ready, but we still have one step to go before you can enjoy your ‘brand new’ WordPress website.

Step #3: Delete Any Leftover Files on Your Website Via FTP

Similarly to the first two methods, creating a new database doesn’t delete your WordPress plugins and themes. To do that, you’ll have to remove the files manually, and we recommend using FTP for this step.

Return to your WordPress root folder and look for the wp-content directory. The three folders we’re looking for are inside – plugins, themes, and uploads:

Your plugin, theme, and upload folders.

You can safely delete all of them except for themes. Here, you’ll want to leave at least one theme folder inside, so WordPress can load it in a moment. When you’re done, pat yourself on the back. The hard work is done, and all that’s left now is to inaugurate your site.

Step #4: Execute the WordPress Installation Script

The WordPress installation script enables you to configure your WordPress setup through your browser. To run it, you’ll have to append /wp-admin/install.php to your site’s primary URL.

That will execute the script, which will ask you to fill in a few simple details such as your site’s language, and your admin credentials. This step is critical if you want your website to work, since the database we created earlier is still bare. If you don’t run the installer, it won’t have the tables it needs for you to use WordPress.

After the installation process is complete, you’ll be able to log into your dashboard as normal and get back to working on your website.

Conclusion

Resetting your WordPress website is a drastic move, but it’s often your best option. For example, if you want to repurpose your site entirely, it makes sense to start over with a blank slate. If you keep a local website around for testing purposes, it’s also smart to reset it now and then. That way, you’re working within a clean environment.

The easiest way to reset your website is by using a plugin such as Advanced WordPress Reset. However, you can also do it manually following these steps:

  1. Access your WordPress database and delete it.
  2. Create a brand new WordPress database.
  3. Delete any leftover files on your website via FTP.
  4. Execute the WordPress installation script.

Do you have any questions about how to reset your WordPress website? Ask away in the comments section below!

Article thumbnail image by Nakigitsune-sama / shutterstock.com.

Divi

Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post

17 Comments

  1. The methods you list here are no doubt helpful and bring new ideas. IMO, using a plugin is the safest because developers know how to avoid mistakes while with newbies, there is always a chance of a typo and in php you could easily flush yourself out. Though, I always kept the file manager running through cPanel (I find filezilla very scary to work with) so that I can easily copy all before working and paste if something went wrong.

    I like your way of writing and looking for more. Thanks John!

    • You’re welcome, Milind! Thanks for sharing your thoughts. 🙂

  2. Looks like E.T. are upping their game! Thanks for the post, well written and a very useful subject. You could have stuck at the plugin but chose to give us a much more rounded and better version that can help new developers learn a little more, which I see a lot of value in. Thank you…

    • You’re welcome! We’re glad you enjoyed the post so much. 🙂

  3. Good explanation, comparing methods! Thanks, John.

    • Hi Doug, you’re welcome! 🙂

  4. Hmm, thanks for that plugin method, wasn’t aware of that. I have tried the other methods you specified above.

    • You’re welcome, Aman! Thanks for your comment. 🙂

  5. Sounds simpler to just wipe the files and db and install a fresh copy.
    Takes a few minutes.

    • I used Advanced WordPress Reset Plugin for this. Quick and simple.

      • You can also keep your database and just remove all the files in your domain directory and install a fresh copy with a new database. Once the installation is complete, link your old database with this new installed wordpress. That’s it.

    • use of a plugin is instant though. Less than 10 seconds.

  6. Great and unique post I have seen about wordpress on the internet.
    Can we use this reset option if we loose admin access due to a fatal error?

    • Hi Vistor, thanks! It would depend on the specific error, but it’s certainly possible.

  7. No, get more best way. Only 1 step. Simply change prefix of tables in wp-config from wp- to other

  8. Hi.

    If I have revisions disabled. Do any changes to pages record in my database?
    Thanks

    • No.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi