In some cases, it may happen that you need or want to reset your WordPress site to the default settings. Say, for testing purpose, you install some new plugins or themes on your website, and then you want to delete them and remove all the site changes brought by them so as to prevent some compliance problems.
You can do the reset by re-installing WordPress, however, it’s a little bit troublesome and time-consuming. Instead, you can simply use plugins for that purpose. In the following, we will show you how to reset WordPress site using a plugin.
Common Reasons for You to Reset WordPress
Actually, it is not common for most users to reset WordPress. After all, all your website data, files and information will be recorded into the database. In this case, resetting your website means you are cleaning all of these records and throw them away. However, it is true that there are some situations that you have to do the reset for your website.
- If you use your WordPress setup for some testing purposes, such as the proper working of a plugin or a theme, you’d better clean up your website after the testing.
- It is possible that you are encountering some website issues so as to be locked out of your website. If you have done whatever you can but the issue still remains, the resetting practice might be your only choice.
- This rarely happens. But still, it is possible that you may want to rebuild your website.
Use WordPress Database Reset
The first plugin you can take use of is WordPress Database Reset, which is available in the WordPress Plugin Directory. With it, you can reset your database to the original state without having to go through installation.
To do so, first you need to install and activate the plugin. Once done, go to the Dashboard, then scroll down to “Tools” and click “Database Reset” in the list.
Here you can see the following screenshot. Then, choose what you want to reset. You can either select some specific database tables like posts and comments from the dropdown menu, or choose the entire database by clicking the “Select All” link.
After you have selected what you want to reset, you should select the checkbox if you want to reactivate the current theme and plugins after resetting, or just ignore it if not. Next, you need to enter a randomly generated security code, here “8850e” in the text box, which is to confirm the reset.
After finishing, click the “Reset Tables” button. You will be then redirected back to your WordPress Dashboard and all of your WordPress settings have been reset to the default state.
Note that, once your WordPress database is reset, all users will be deleted except for the first user. However, other files like images will not be modified.
Use WordPress Reset
You can also use another plugin – WordPress Reset to reset the WordPress database back to the default settings. Instead of modifying your files, it only removes all the content and customizations on your website.
To make use of this plugin, you need to install and activate it. Then, go to the Dashboard and click “Reset” located in the “Tools” list.
You will see the screenshot below. What you need to do now is to type “reset” in the confirm field, and then click the “Reset” button.
Once done with resetting, all the data about your plugins and themes will be wiped out.
Achieve the Reset Manually
This practice is not recommended for new users. However, if you do not want to install the extra plugins, you can do this manually. Here, you just need to follow the below steps.
- Log in to your cPanel control panel and click the MySQL Database option from the Database section.
- Find and target your website database. Note that if you have not changed the database prefix, it starts with “wp”.
- Delete your website database by clicking the Delete button.
- Create a new database with the same database name of your deleted one.
- Recreate the admin user with this new database. Note that the username and the password should be same as the old one. Otherwise, the wp-config.php file can hardly recognize the information.
- Use the FTP client or the File Manager to delete all the files from the WordPres root folder by looking for the wp-content directory.
- Execute WordPress installation by entering /wp-admin/install.php after your site domain in the browser address bar.
On the Bottom
One thing you should be aware of is that both plugins mentioned above are designed for testing or development installs. Therefore, if you are running an online website, you’d better be careful and make sure you have backed up the site in case there are still some things valuable before you use plugins to do the reset.