X Reset WP
A WordPress admin tool for selectively deleting WooCommerce and WordPress data in bulk — orders, users, coupons, analytics, logs, transients, and more.
by @jesusdavidweb · github.com/jesusdavidweb/x-reset-wp · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jesusdavidweb/x-reset-wp/archive/refs/heads/main.zip
Reset your WordPress safely. A WordPress admin tool for selectively deleting WooCommerce and WordPress data in bulk — orders, users, coupons, analytics, logs, transients, and more.
Features
| Option | Clears |
|---|---|
| WooCommerce Orders | wp_posts (legacy) or wp_wc_orders (HPOS) — auto-detected |
| Order Notes | wp_comments where comment_type = 'order_note' |
| Coupons | wp_posts where post_type = 'shop_coupon' |
| Users | All users except administrator and super_admin roles |
| Customer Sessions | wp_woocommerce_sessions (truncated) |
| Transients | _transient_% entries in wp_options |
| System Logs | wp-content/uploads/wc-logs/ and wp-content/debug.log |
| WooCommerce Analytics | Order stats, product lookup, coupon lookup, tax lookup tables |
| Geographic Statistics | Orders by country option + its transient |
| Customer Downloads | wp_woocommerce_downloadable_product_permissions |
Key capabilities
- HPOS compatible — detects WooCommerce High-Performance Order Storage automatically.
- Batch processing — operations are chunked (default 100 per batch) and executed via sequential AJAX requests. No timeouts on large datasets.
- Confirmation modal — displays exactly what will be deleted before execution. Irreversible action warning.
- Progress UI — real-time progress bar, step labels, and scrollable log (green for success, red for errors).
- Keyboard support — dismiss the confirmation modal with
Escape. - i18n ready — fully translatable via
.po/.mofiles. Ships with Spanish (Spain) and Portuguese (Portugal). - Vanilla JS — no jQuery dependency. No build step.
Requirements
- WordPress 5.0+
- WooCommerce 4.0+ (for WooCommerce-specific features)
- PHP 7.4+
Installation
From WordPress admin
- Download the plugin ZIP.
- Go to Plugins > Add New > Upload Plugin.
- Choose the ZIP file and click Install Now.
- Activate the plugin.
Manual (FTP)
- Extract the ZIP archive.
- Upload the
x-reset-wpfolder to/wp-content/plugins/. - Go to Plugins and activate X Reset WP.
Usage
- Go to Tools > X Reset WP in the WordPress admin.
- Check the data types you want to delete.
- Click Execute Reset.
- Review the confirmation modal — this action is irreversible.
- Confirm to start the batch process. A progress bar shows real-time status.
Warning: Deleted data cannot be recovered. Always back up your database before using this tool.
Project structure
x-reset-wp/
├── x-reset-wp.php # Plugin bootstrap, admin page, AJAX handler
├── includes/
│ └── class-reset-handler.php # Core reset logic (10 cleanup methods)
├── assets/
│ ├── css/admin.css # Admin UI styles
│ └── js/admin.js # Batch processing, modals, progress UI
├── languages/
│ ├── x-reset-wp-es_ES.po # Spanish (Spain) translation
│ ├── x-reset-wp-es_ES.mo
│ ├── x-reset-wp-pt_PT.po # Portuguese (Portugal) translation
│ └── x-reset-wp-pt_PT.mo
└── CHANGELOG.md
Changelog
See CHANGELOG.md for version history.
Security
- All AJAX requests are protected with WordPress Nonces.
- Only users with
manage_optionscapability can access the tool. - All inputs are sanitized before processing.
Contributing
- Fork the repository.
- Create a branch for your change.
- Submit a pull request with a clear description of the change.
License
GPL-2.0+ — © 2025 Jesús David
Author
Jesús David — @jesusdavidweb — jesusdavid.net