Disclosure: This page may contain affiliate links. If you purchase something using those links, we may receive a commission, but it will not cost you anything extra.
Resetting is not something you want to do often on your live WordPress website. However, there are times when you need to do this. For example, if you are a person who likes testing plugins and themes, you might find this post useful.
The main step in resetting WP is to get the database back to its initial state. You can do it by deleting all the tables and going through the WordPress installation process once again.
If that seems a bit difficult, you can seek the help of a plugin to do the task. Using a plugin has the following benefits:
- You don’t have to set up WordPress again.
- Plugins can restore the current user without changing the username or password.
- No need to do any database operation manually, which is a bit risky if you are not experienced.
Here is a video showing how to reset a WordPress website using the WP Reset plugin:
Best Plugin to Reset WordPress
WP Reset is currently the best choice to do this job. It is free to use and available from the WordPress plugins repository. Its rating is 4.8 and has more than 100k installs.
Clicking the reset button on this plugin get rid of all the contents including posts, pages, and media. However, it won’t remove any of the files in the wp-content folder. That means your themes, plugins,
If you want to delete everything, then go to the Tools tab of the plugin. There you can see the options to empty all these files too.
In addition to these, the tools include the options to delete custom tables, transients, and the htaccess file. Some plugins add custom tables to the WordPress database which won’t go away even after you uninstall the plugin.
In such a case, these tools come useful. Remember that you can use these tools alone even if you don’t want to do a full reset.
To manually reset WP, you need access to some database management tools like
The steps are as follows:
- Drop all tables in the database
- Empty the themes, plugins, and uploads directories using FTP (on a
- Run the WordPress installation
First of all, log in to the PhpMyadmin of your WordPress host and select the database. Be extra careful that you select the correct database.
In case you don’t know the name of your database, check it in the wp-config.php file.
Now, check all the tables. Then from the drop-down menu, select the Drop option and click Yes.
This deletes all the tables and makes your database empty.
Delete all themes, plugins, and uploads
Using an FTP program like FileZilla, go to the wp-content folder the site you want to reset. On your local machine, you can directly navigate there.
Delete every folder except plugins, themes, and uploads. Keep the index.php file also. This file ensures that no one can index the contents of your wp-content folder. Lastly, empty these folders too. Be sure you empty these three folders instead of deleting.
Optionally, you can also delete the htaccess file from the root folder if you had custom rules from your previous installation.
Run the WordPress Installation
This is the final step. To access the installation page, go to yoursite.com/wp-admin/install.php. Just accessing your homepage also leads here.
Since you haven’t deleted the wp-config.php file, details like the name of your (now empty) database and DB user are still there.
As usual, complete the installation process by supplying a site title, username, email, and password.
Now your site will look like a fresh WordPress installation. Using the plugin is still my personal preference. If you have more questions or if I am unclear in some steps, ask below.