Precision Delete – Bulk Delete & 301 Redirects by flux360

By flux360

★ 5.0/5 (1 ratings)10+ active installationsVersion 3.2.1

SEO-safe bulk delete for WooCommerce products, posts & media with automatic 301 redirects, WPML/Polylang sync, and unused media cleanup.

Description

Precision Delete – Bulk Delete & 301 Redirects helps WooCommerce stores, SEO specialists, and WordPress site managers retire discontinued products or old content safely without creating 404 errors.

Most bulk delete plugins only remove database records and leave behind broken URLs. Precision Delete removes items in safe AJAX batches, creates automatic 301 redirects to the parent category (or any custom URL), syncs deletions across WPML / Polylang translations, and optionally cleans up unused product/featured images.

100% Free & Open Source: No artificial item limits, no row caps, and no hidden paywalls.

Key Features

  • Bulk Delete by SKU or Title List: Paste hundreds of SKUs or product/post titles (one per line) and match using Exact, Contains, or Starts With logic.
  • Automatic 301 Redirects: Automatically redirects deleted product or post URLs to their primary category (product_cat or category) or a 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.
  • Multilingual Sync (WPML & Polylang): Automatically detects linked translations, groups them cleanly without duplicates, and lets you choose which language versions to remove together.
  • Precision Filters & Custom Post Types: Filter by Post Type (Products, Posts, Pages, public CPTs, Media Library), Post Status (Published, Draft, Private, Pending, Scheduled), 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 or product.
  • Chunked AJAX Batching: Processes large selections in sequential batches with a live progress bar to prevent max_input_vars truncation 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.

Why Precision Delete?

  1. SEO Continuity First: Every deletion can automatically generate a 301 redirect to preserve backlinks and organic traffic.
  2. Built for WooCommerce Scale: Search by SKU, prioritize product_cat redirects, and process large batches reliably.
  3. 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

  1. Open Precision Delete in your admin menu.
  2. Choose Match Logic (Exact Match, Contains, or Starts With) and Search In (Auto, SKU Only, or Name Only).
  3. Select the Content Types (Products, Posts, Pages, Custom Post Types, or Media Library), Status, Date Range, and Language (if WPML or Polylang is active).
  4. Paste your SKUs or titles in the text area (one per line) and click Start Smart Search.

Step 2: Review Matches, Translations & 301 Targets

  1. Review the matched rows and any nested Translations.
  2. Each row pre-fills a recommended 301 Redirect Target (typically the item’s primary product_cat or category). You can edit any URL inline or uncheck the 301 column to skip redirecting that item.
  3. Optionally enable Also permanently delete unused featured & gallery images if you are performing a Permanent Delete.
  4. Click Move Selected to Trash or Permanently Delete Selected (or use individual row buttons).

Step 3: Use the Floating Delete Cart (Optional)

  1. 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.
  2. 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.

Installation

  1. Upload the flux360-precision-delete folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Open Precision Delete from the WordPress admin sidebar to search, stage, delete, and manage 301 redirects or trashed items.

FAQ

Is it safe for large WooCommerce catalogs?

Yes. Search results use parameterized queries with caching, and bulk deletions run sequentially in small AJAX chunks with a progress bar to avoid server timeouts and PHP max_input_vars limits.

Does it support Custom Post Types?

Yes. All public Custom Post Types are automatically listed in the Content Types filter on the dashboard.

Will deleting a product delete images shared by other products?

No. When the unused media cleanup option is enabled during permanent deletion, the plugin checks whether each featured or gallery image is still referenced as a featured image, in another product’s gallery, or inside post content before deleting it.

What happens if I restore an item from the Trash Manager?

When you restore an item via the Trash Manager, the plugin automatically removes its active 301 redirect from the redirect map so the restored page becomes accessible immediately.

Does it work with both WPML and Polylang?

Yes. Both WPML and Polylang are supported across Smart Search, translation deduplication, and the Floating Delete Cart.

Screenshots

Changelog

3.2.1

  • Compatibility: Verified compatibility with WordPress 7.1 (tested on 7.1.4) and updated Tested up to header.

3.2.0

  • Feature: Added WooCommerce Stock Status filter (All, In Stock, Out of Stock, On Backorder) to Smart Search when Products content 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_vars truncation and 504 timeouts.
  • Performance: Set redirect map and history options to autoload = false and 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_post capability 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, and TrashPage.php to 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_cat instead of simple category.
  • 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.