WP Database Reset
WP Database Reset
Description
Resets the WordPress database back to its defaults. Deletes all customizations and content. Does not modify files only resets the database.
This plugin is very helpful for plugin and theme developers.
If the admin user exists and has level_10 permissions it will be recreated with its current password and email address. If the admin user does not exist or is a dummy account without admin permissions the username that is logged in will be recreated with its email address and current password. The blog name is also kept.
The plugin will add an entry to the Admin Bar under the site title and has the ability to reactivate itself and other plugins after the reset.
Database Compatibility: This plugin supports both MySQL/MariaDB and SQLite databases. For SQLite installations, the reset process will delete the database file and redirect you to the WordPress installation screen.
Upgrade
- Use the plugin updater in WordPress or…
- Delete the previous
wordpress-resetfolder from the/wp-content/plugins/directory - Upload the new
wordpress-resetfolder to the/wp-content/plugins/directory
Usage
- Visit the WordPress Reset Tools page by either clicking the link in the Admin Bar or Tools>WordPress Reset
- Type ‘reset’ in the text field and click reset.
Installation
- Upload the
wordpress-resetfolder to the/wp-content/plugins/directory or install directly through the plugin installer. - Activate the plugin through the ‘Plugins’ menu in WordPress or by using the link provided by the plugin installer
Faq
Add define( 'REACTIVATE_WP_RESET', true ); to wp-config.php above /* That's all, stop editing! Happy blogging. */
Add an array called $reactivate_wp_reset_additional to the global scope by placing it in wp-config.php above /* That's all, stop editing! Happy blogging. */ that contains the plugin basenames of the plugins to activate, such as:
$reactivate_wp_reset_additional = array(
'hello.php',
'akismet/akismet.php'
);
Yes! For SQLite databases, the plugin will delete the database file and redirect you to the WordPress installation screen. This means you’ll need to set up WordPress from scratch after the reset, unlike MySQL/MariaDB installations where your admin user is automatically recreated.
Reviews
It works but it deletes wp_users on some cases...
By federicorojas1100 on September 26, 2023
Well, it works... but if the wordpress database has a diferent prefix it also deletes wp_users. In my case was w7_users and deleted all users. I guess it works fine if the prefix is default wp_users
Simple and minimal
By rabmalin on March 24, 2023
Simple and minimal. Does what is say. Does not slap your face with annoying ads. Thanks for the plugin.
Don´t use this plugin
By ralphvanelli on December 15, 2021
Delete all users
By mainadministrator on October 8, 2021
Simple, blot and ad free
By 9r1nc3w1ll on July 14, 2020
Splendid
By Arash! 😉 (aaraaash) on July 14, 2020
Helped me a lot.
By Md. Abul Kalam Azad (wpazad) on April 20, 2020
Wonderful work
By bithki on October 30, 2019
Perfect
By takaacstamaas on July 12, 2019
Very useful, thanx guys!
By Herrgott on September 20, 2018
Changelog
1.5.0 (2025-01-17):
- Added full SQLite database compatibility including support for SQLite Database Integration plugin
- Modernized code to meet WordPress Coding Standards
- Added comprehensive PHPUnit test coverage
- Improved input sanitization and output escaping
- Refactored JavaScript to vanilla JS (removed jQuery dependency)
- Enhanced error handling with try-catch blocks
- Updated minimum requirements: WordPress 6.2+, PHP 7.4+
1.4
January 19, 2016
- Fix compatibility with PHP 7.0
- Internationalization
1.3.3 (2013-12-18):
- Fix an issue where a user does not have a user_level
1.3.2 (2012-02-13):
- Support PHP versions below 5.3.0, by not using lambda function creation in add_action for admin_notices
1.3.1 (2012-01-29):
- Apparently in a LIKE query, an underscore matches a single character, so we must escape it
1.3 (2012-01-29):
- Fixes a deprecated notice in WordPress 3.3 when using get_userdatabylogin
- Removes the $auto_reactivate variable
- Look for REACTIVATE_WP_RESET constant to be defined in wp-config.php for auto reactivation after reset
- Look for global $reactivate_wp_reset_additional for additional plugins to auto reactivate after reset
- Add a Reset link to the admin bar under the site title
1.2 (2010-04-04):
- Updates to fix deprecated notices for WP 3.0
- Updates for 3.0 to disable password nag
- Modify new blog email to not include the generated password
1.1 (2009-10-01):
- WordPress 2.8 Updates, do not show auto generated password nag after reset
1.0 (2009-03-17):
- Initial Public Release