{"id":271618,"date":"2026-01-11T17:52:57","date_gmt":"2026-01-11T17:52:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/store-toolkit-for-woocommerce\/"},"modified":"2026-01-11T21:19:58","modified_gmt":"2026-01-11T21:19:58","slug":"wpr-bulk-category-removal-woocommerce","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/wpr-bulk-category-removal-woocommerce\/","author":18819892,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.9.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"WPRepublic Bulk Category Removal for WooCommerce","header_author":"WP Republic","header_description":"A suite of professional tools for WooCommerce. Includes a cleanup utility to safely bulk delete products and orphaned data.","assets_banners_color":"","last_updated":"2026-01-11 21:19:58","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/wprepublic.com","header_plugin_uri":"https:\/\/github.com\/makmour\/wpr-bulk-category-removal-woocommerce","header_author_uri":"https:\/\/wprepublic.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":166,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"wprepublic","date":"2026-01-11 21:19:58"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"<strong>Dashboard:<\/strong> Select categories to clean and choose between Simulation (Dry Run) or Live Cleanup.","2":"<strong>Audit Logs:<\/strong> Detailed logs ensure you know exactly what happened during the process."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[231994,253762,253763,286,4574],"plugin_category":[45],"plugin_contributors":[83255,212297],"plugin_business_model":[],"class_list":["post-271618","plugin","type-plugin","status-publish","hentry","plugin_tags-bulk-delete-products","plugin_tags-delete-categories","plugin_tags-store-maintenance","plugin_tags-woocommerce","plugin_tags-wp-cli","plugin_category-ecommerce","plugin_contributors-thewebcitizen","plugin_contributors-wprepublic","plugin_committers-wprepublic"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wpr-bulk-category-removal-woocommerce.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Building a WooCommerce store is easy. Maintaining a massive one is hard.<\/strong><\/p>\n\n<p>We built <strong>WPRepublic Bulk Category Removal for WooCommerce<\/strong> to be the Swiss Army knife that every store administrator wishes they had. This plugin is designed to host a variety of essential add-ons and utilities, evolving into a complete operations center for your shop.<\/p>\n\n<h3>The First Module: The \"Bulk Delete\" Solution<\/h3>\n\n<p>Have you ever tried to delete a product category in WooCommerce, only to realize the <em>products<\/em> inside it stay behind?<\/p>\n\n<p>You are left with thousands of orphaned items, and the default interface only lets you delete them 20 at a time. It is slow, it times out, and it frustrates even the most patient admins.\n<strong>For years, there wasn't a simple, native way to say: \"Delete this category AND everything inside it.\"<\/strong><\/p>\n\n<p><strong>Now there is.<\/strong><\/p>\n\n<p>The <strong>WPRepublic Bulk Category Removal Cleanup Module<\/strong> allows you to select specific categories and surgically remove all products contained within them.<\/p>\n\n<h3>Why this is the tool you've been looking for:<\/h3>\n\n<ul>\n<li><strong>The \"Missing\" Feature:<\/strong> Finally, you can bulk delete thousands of products based on their category with a few clicks.<\/li>\n<li><strong>Deep Cleaning:<\/strong> It doesn't just delete the post. It scrubs the database of orphaned relationships, <code>postmeta<\/code>, and <code>wc_product_meta_lookup<\/code> entries, keeping your database lean and fast.<\/li>\n<li><strong>Safety First:<\/strong> Includes a <strong>Dry Run<\/strong> mode (enabled by default). Simulate the entire process and read the logs before you delete a single byte of data.<\/li>\n<\/ul>\n\n<h3>\ud83d\ude80 Supercharged with WP-CLI<\/h3>\n\n<p>For developers and site reliability engineers, the graphical interface is just the beginning.\n<strong>WPRepublic Bulk Category Removal<\/strong> comes with robust <strong>WP-CLI integration<\/strong> out of the box.<\/p>\n\n<ul>\n<li><strong>No Timeouts:<\/strong> managing 50,000 products? Run the cleanup from the terminal. It is faster, more stable, and immune to browser timeouts (PHP max_execution_time).<\/li>\n<li><strong>Secure &amp; Scriptable:<\/strong> Automate your store maintenance via cron jobs or shell scripts securely.<\/li>\n<li><strong>Dry Runs in Terminal:<\/strong> Test your cleanup logic directly in the command line before executing.<\/li>\n<\/ul>\n\n<h3>What's Next?<\/h3>\n\n<p>This is just the beginning. <strong>WPRepublic Bulk Category Removal for WooCommerce<\/strong> is being actively developed to include more modules for bulk editing, customer management, and store optimization.<\/p>\n\n<blockquote>\n  <p><strong>WARNING:<\/strong> This is a powerful, destructive tool. Always perform a full database backup before running a live cleanup.<\/p>\n<\/blockquote>\n\n<h3>WP-CLI Commands<\/h3>\n\n<p>Use the power of the command line to manage your store cleanup efficiently.<\/p>\n\n<h3>1. List Categories<\/h3>\n\n<p>View a table of all product categories, their IDs, slugs, and product counts.<\/p>\n\n<pre><code>wp wpr-bulk-category-removal-woocommerce list-categories\n<\/code><\/pre>\n\n<h3>2. Run Cleanup<\/h3>\n\n<p>Execute the cleanup process for specific categories.<\/p>\n\n<p><strong>Options:<\/strong><\/p>\n\n<ul>\n<li><code>--term-id=&lt;ids&gt;<\/code> : A comma-separated list of category IDs to process.<\/li>\n<li><code>--category-slug=&lt;slugs&gt;<\/code> : A comma-separated list of category slugs.<\/li>\n<li><code>--dry-run<\/code> : (Optional) Simulate the cleanup without deleting data.<\/li>\n<\/ul>\n\n<p><strong>Examples:<\/strong><\/p>\n\n<p><strong>Safe Simulation (Dry Run):<\/strong>\n    wp wpr-bulk-category-removal-woocommerce run --category-slug=temp-collection --dry-run<\/p>\n\n<p><strong>Live Cleanup (By ID):<\/strong>\n    wp wpr-bulk-category-removal-woocommerce run --term-id=152,189<\/p>\n\n<p><strong>Live Cleanup (By Slug):<\/strong>\n    wp wpr-bulk-category-removal-woocommerce run --category-slug=clothing,accessories<\/p>\n\n<!--section=installation-->\n<p><strong>From your WordPress dashboard:<\/strong><\/p>\n\n<ol>\n<li>Navigate to 'Plugins &gt; Add New'.<\/li>\n<li>Search for 'WPRepublic Bulk Category Removal for WooCommerce'.<\/li>\n<li>Click 'Install Now'.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Navigate to 'WooCommerce &gt; WPRepublic Bulk Category Removal' to get started.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='is%20this%20tool%20safe%3F'><h3>Is this tool safe?<\/h3><\/dt>\n<dd><p>Yes. The plugin defaults to <strong>Dry Run<\/strong> mode. This means you can press \"Run\" and see exactly what <em>would<\/em> happen in a log file, without actually deleting anything. We strongly recommend doing this first.<\/p><\/dd>\n<dt id='does%20it%20delete%20the%20category%20folders%20too%3F'><h3>Does it delete the category folders too?<\/h3><\/dt>\n<dd><p>No. The plugin deletes all the <strong>products<\/strong> inside the selected categories. The categories themselves (the terms) remain on your site, but they will be empty (0 products).<\/p><\/dd>\n<dt id='why%20use%20wp-cli%3F'><h3>Why use WP-CLI?<\/h3><\/dt>\n<dd><p>If you are trying to delete 10,000+ products, a web browser might \"time out\" (stop working) halfway through. WP-CLI runs directly on the server, making it much faster and reliable for massive stores.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>REBRAND: Renamed plugin to <strong>WPRepublic Bulk Category Removal for WooCommerce<\/strong> to reflect its new modular architecture.<\/li>\n<li>FEATURE: Prepared codebase for future add-on modules.<\/li>\n<li>UPDATE: Updated WP-CLI commands to <code>wp wpr-bulk-category-removal-woocommerce<\/code>.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>FEATURE: Added Search, Sort, and Pagination to the admin table.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"The ultimate modular toolkit for WooCommerce admins. Starts with the &quot;Missing Feature&quot;: Bulk Delete Products by Category (with WP-CLI support).","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/271618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=271618"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wprepublic"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=271618"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=271618"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=271618"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=271618"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=271618"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=271618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}