Precision Delete – Bulk Delete & 301 Redirects by flux360
SEO-safe bulk delete for WooCommerce products by SKU or stock status with 301 redirects, WPML/Polylang sync, and unused image cleanup.
Install in
Precision Delete – Bulk Delete & 301 Redirects helps WooCommerce stores, SEO specialists, and multilingual site managers retire discontinued products or old content safely without creating 404 errors or orphan images.
Deleting products manually on WPML or Polylang stores—while tracking down shared gallery photos and setting up 301 redirects—wastes hours. Precision Delete lets you search by SKU list, title, or WooCommerce Stock Status (Out of Stock, On Backorder, In Stock), review linked translations side-by-side, clean up unused images, and apply 301 redirects in safe AJAX batches.
100% Free & Open Source: No artificial item limits, no row caps, and no hidden paywalls.
Key Features
- Bulk Delete by SKU, Title, or Stock Status: Paste hundreds of SKUs or product/post titles (one per line) using Exact, Contains, or Starts With logic—or leave the box blank to browse directly by Stock Status, Post Status, Date Range, and Language.
- Multilingual Sync (WPML & Polylang): Automatically detects linked product and post translations, deduplicates groups cleanly, and lets you remove all or selected language versions together.
- Automatic 301 Redirects: Automatically redirects deleted product or post URLs to their primary category (
product_catorcategory) or any custom URL you edit inline before deleting. - Built-in 301 Redirect Manager: Search, add, edit, delete, and export (CSV) all active 301 redirects from one dedicated screen.
- Precision Filters & Custom Post Types: Filter by Post Type (WooCommerce Products, Posts, Pages, public CPTs, Media Library), Post Status (Published, Draft, Private, Pending, Scheduled), WooCommerce Stock Status, and Date Range.
- Safe Unused Media Cleanup: Optionally delete featured images and WooCommerce gallery images during permanent deletion — only after verifying they are not used by any other post, product gallery, or post content.
- Chunked AJAX Batching: Processes large selections in sequential batches with a live progress bar to prevent
max_input_varstruncation and 504 gateway timeouts. - Floating Delete Cart (WP List Integration): Stage products or posts directly from standard WordPress/WooCommerce list tables via Row Actions or Bulk Actions, and process them with 301 redirects from anywhere in the list view.
- Centralized Trash Manager: Review trashed items, bulk restore them (automatically removing their temporary 301 redirects), or permanently force-delete them.
- Quick Delete Button: Authorized users can trash or permanently delete with a 301 redirect directly from the single product frontend or post edit sidebar.
- Dynamic Role Access Control: Grant plugin access to Shop Managers or custom roles while keeping Settings restricted to Administrators.
Common Use Cases
- Retiring Out-of-Stock Products: Filter WooCommerce products by
Out of Stock, verify primary category 301 redirect targets, and delete discontinued SKUs along with unused gallery images. - Agency Multilingual Cleanup (WPML & Polylang): Paste a single SKU or title list and delete the source product alongside its translated language versions without leaving broken cross-language links.
- Legacy Content & Draft Pruning: Filter old drafts, pending posts, or custom post types by date range and apply 301 redirects in one pass.
Why Precision Delete?
- SEO Continuity First: Every deletion can automatically generate a 301 redirect to preserve backlinks and organic traffic.
- Built for WooCommerce & WPML Scale: Filter by Stock Status or SKU, sync translations cleanly, prioritize
product_catredirects, and process large batches reliably. - Zero Accidental Media Loss: Unused attachment cleanup checks featured images, WooCommerce product galleries, and post content references before removing any file.
Usage
Step 1: Search & Filter Content
- Open Precision Delete in your admin menu.
- Choose Match Logic (
Exact Match,Contains, orStarts With) and Search In (Auto,SKU Only, orName Only). - Select the Content Types (Products, Posts, Pages, Custom Post Types, or Media Library), Status, Stock Status (for WooCommerce Products), Date Range, and Language (if WPML or Polylang is active).
- Paste your SKUs or titles in the text area (one per line) — or leave it blank to browse directly using your selected filters — and click Start Smart Search.
Step 2: Review Matches, Translations & 301 Targets
- Review the matched rows and any nested Translations.
- Each row pre-fills a recommended 301 Redirect Target (typically the item’s primary
product_catorcategory). You can edit any URL inline or uncheck the 301 column to skip redirecting that item. - Optionally enable Also permanently delete unused featured & gallery images if you are performing a Permanent Delete.
- Click Move Selected to Trash or Permanently Delete Selected (or use individual row buttons).
Step 3: Use the Floating Delete Cart (Optional)
- From standard Products, Posts, or Pages admin screens, click Precision Delete (Cart) on a row or select multiple items and choose Precision Delete (Add to Cart) from Bulk Actions.
- Open the floating Delete Cart in the bottom-right corner, review/edit redirect URLs and translations, and click Trash or Force Delete.
Step 4: Manage 301 Redirects & Trash
- Open Precision Delete -> 301 Redirects to search, add, edit, delete, or export active 301 rules to CSV.
- Open Precision Delete -> Trash Manager to bulk restore trashed items (which automatically clears their 301 redirect) or permanently delete them.
Written by Joobi from the project's own listing. See the source page
3.2.2
- Compatibility: Updated
Tested up toheader to WordPress7.2following WordPress 7.2 & PHP 8.6 readiness review. - Maintenance: Replaced remaining deprecated jQuery
.click()event handlers with.on('click', ...)for jQuery 4 readiness.
3.2.1
- Compatibility: Verified compatibility with WordPress 7.1 (tested on 7.1.4) and updated
Tested up toheader.
3.2.0
- Feature: Added WooCommerce Stock Status filter (
All,In Stock,Out of Stock,On Backorder) to Smart Search whenProductscontent type is selected. - Feature: Enabled Filter-Only Smart Search when leaving the SKU/title box blank, with paginated results (50 per page), a 500-item preview cap notice, and WPML/Polylang translation deduplication.
- Enhancement: Added Post Status and WooCommerce Stock Status badges to matched rows and updated the search textarea placeholder with SKU and title examples.
- Enhancement: Added a non-intrusive, dismissible WordPress.org feedback notice on plugin screens after meaningful usage.
3.1.1
- Fix: Shortened readme.txt Short Description to fit WordPress.org’s 150-character limit.
- Chore: Added automated GitHub Actions deployment configuration.
3.1.0
- Feature: Added dedicated 301 Redirect Manager page with search, manual rule creation, inline target editing, bulk deletion, and CSV export.
- Feature: Implemented Safe Unused Media Cleanup during permanent deletion (checks featured images, WooCommerce product galleries, and post content before deleting attachments).
- Feature: Added Content Type (including public CPTs), Post Status, and Date Range filters plus functional Media Library search inclusion.
- Performance: Added sequential AJAX chunking with a live progress bar for bulk delete and Trash Manager actions to prevent
max_input_varstruncation and 504 timeouts. - Performance: Set redirect map and history options to
autoload = falseand added automatic cache invalidation across search and Trash Manager after mutations. - Fix: Fixed 301 redirect matching when URLs contain query parameters (e.g.,
utm_source,fbclid) or URL-encoded characters, and added automatic redirect cleanup on item restore. - Fix: Added WPML support and translation selection to the Floating Delete Cart, fixed translation group deduplication in search results, and preserved existing URL query parameters when adding bulk items to the cart.
- Fix: Fixed Quick Delete modal context handling in the backend post editor, loading states, and error handling.
- Security: Added HTML escaping in admin JavaScript to prevent DOM XSS, added per-post
delete_postcapability checks across all delete/restore actions, and fixed custom role capability resolution. - UI: Fixed layout grid spacing and Recent History container markup on the main dashboard.
3.0.2
- Hotfix: Pushed missing files
CartUI.php,Settings.php, andTrashPage.phpto the WordPress repository that were previously missing from the SVN commit.
3.0.1
- Hotfix: Resolved a fatal error caused by explicitly missing manual class inclusions for environments with strict autoloader restrictions.
3.0.0
- Major Feature: Added floating Precision Delete Cart widget to standard WP post and product lists.
- Major Feature: Added centralized Trash Manager dashboard for bulk restore and force delete.
- Enhancement: Redesigned the UX to prevent backend dashboard redirects when deleting items.
- Enhancement: WooCommerce product category resolution now actively defaults to the primary
product_catinstead of simplecategory. - Enhancement: Added “Permanent Delete (Skip Trash)” options across the board.
- Security: Elevated codebase to stricter PHPCS standards, replacing standard redirects with safe redirects and adding caching wrappers to direct DB queries.
2.1.2
- Official stable release for WordPress.org.
- Improved AJAX processing for high-load servers.
2.1.0
- Rebrand: Renamed to “flux360 Precision Delete”.
- Feature: Enhanced Auto-Redirect logic.
- Feature: Improved WPML/Polylang synchronization.
2.0.5
- Fix: Resolved PHPCS warnings and improved security headers.
Follow this listing's changes (Atom feed)