3 WAYS TO RESET YOUR WORDPRESS SITE
WordPress is a powerful CMS, but this also means that there is plenty that can go wrong. Sometimes it just makes sense to start over from scratch. If you’ve thought of just throwing in the towel and walking away from a troublesome website, this might be a better solution. Here is why you might want to reset your WordPress site, and how you can go about this both manually and using a plugin.
WHY YOU MAY NEED TO RESET YOUR WORDPRESS SITE
When you reset a WordPress site, this means that you are putting all databases and files back to the original state at installation. You are effectively taking a new WordPress installation and putting it over what is there right now.
Why would you want to do this? While it’s not common to start from scratch, there are several situations in which you might want to reset your WordPress site:
- You want to re-purpose or rebuild your website. If you don’t like the direction your site has taken or want to use the domain for something else, you can reset WordPress to begin a new project.
- To clean up a test installation. Maybe you use WordPress setups to test certain plugins, themes, content, or other site layouts. Once you’ve completed a round of testing, you can reset your site to start again.
- You can’t access your website and have a backup. There is any number of reasons why you might get locked out of your WordPress site and need to start over. Maybe there was a security breach or a failure in some part of the code after an update that you can’t resolve. You need to access your site to work on it, and you can do this again if you first re-set it and then restore your backup data.
Because of the potential for hacking and making the wrong decision in WordPress, it’s always a good idea to have a backup of your site on hand. Suppose you decide to clean your WordPress site and then change your mind later, or you want to switch to a new web host or want to restore it to a certain date before you started having problems.
Ideally, you’ll have several backups to choose from so that you’ll always have these options.
1. HOW TO RESET YOUR WORDPRESS SITE MANUALLY
The good news is that there are several ways to reset a WordPress site. We’re going to start with the most tedious method first – doing it manually. Even so, this isn’t that difficult. You can get your WordPress site back to factory settings by following just four short steps.
Step 1: Locate Your WordPress Database and Delete It
You can access your WordPress database through your cPanel account. Look for the MySQL Databases option under the Databases section and then find the database that corresponds to your site.
Not sure which one matches your site? Go into your File Manager first and “View” the “wp-config” file in the root folder of your WordPress site. This lists your database name, username, and password. (Write all of this information down to use in Step 2).
Now that you know what you’re looking for, head back to that list in MySQL Databases and “Delete” the database.
Now that you’ve deleted this database, your site won’t work anymore until you complete the rest of the steps.
Step 2: Create a New WordPress Database
Still, within the MySQL Databases area in your cPanel, you’re going to create a new database. There should be an option at the top of the screen to do this.
When the box comes up asking for the name, use the same name as the database you just deleted (if you don’t do this, your reset won’t work). Click, Create Database.
Since you didn’t delete your user, it should still be on the list. Scroll down to the “Add User to Database” area and choose the original User and the Database you just created. Click Add.
Step 3: Delete Leftover Files from Your WordPress Site
Go into the wp-content directory and click on each folder: plugins, themes, and uploads. Delete everything in those folders except in the themes folder. There, you should leave at least one theme.
Step 4: Reinstall WordPress
You can quickly and easily install WordPress with the built-in script. With this, you can install a fresh version of WordPress through your browser.
To run this, just type in your site’s URL and /wp-admin/install.php at the end. This will execute the script and prompt you to answer a few simple questions. Once the installation is complete, you can log in to your dashboard once again.
2. RESET YOUR WORDPRESS SITE USING THE COMMAND LINE
Anyone who is a developer will also be familiar with WP-CLI, which is a command line tool that allows Secure Shell (SSH) access to interact with the platform. Through this access, you can use simple commands to complete some complex tasks.
One thing you can accomplish in WP-CLI is resetting your WordPress site without the manual process we just described. The line to enter is wp DB reset, which prompts a reset. You will still need to clean up your themes and plugins with this method, but it is a good time saver if you have access to this tool.
3. RESET YOUR WORDPRESS SITE USING A PLUGIN
Provided you can still access your WordPress site, you can easily and quickly reset it using a plugin. There are several to choose from, and a few popular ones include
- Advanced WordPress Reset
- Advanced Reset WP
- Reset WP
The most popular one is Advanced WordPress Reset, so we’ll take the closest look at using this plugin to reset your WordPress site.
The first thing you’ll want to do is to install and activate the plugin. Once activated, you can find the Advanced WP Reset options under the Tools tab in your WordPress dashboard.
Since resetting your site is a big deal, the plugin requires that you confirm your intentions by typing “reset” in a box and then having you click the button that says “Reset database.” As soon as you do this, you’ll be logged out of your WordPress dashboard since the site has been recreated.
It’s important to note that this plugin will not delete your themes or plugins. If you want to do this, you’ll need to go through those tabs and take care of this manually. Once done, however, your site will be back to the state as a fresh install.