Description
Bulk Trash by URL helps editors and SEOs quickly clean up content by trashing items based on a list of URLs. Paste your URLs, let the plugin map each URL to a post ID (handles common variations like trailing slashes and marketing query params), select what you want to remove, and process in efficient batches with progress feedback.
Key features:
- Paste URLs to find matching posts, pages, and custom post types.
- Fast URL-to-post mapping in AJAX batches with progress bar.
- Select exactly which items to trash before running.
- Batched trashing with live progress, pause/resume controls.
- Optional completion summary with counts and lists (trashed, failed, no permission, invalid).
- Settings to tune performance and limits:
- Max Page Size (mapping batch size)
- Max URLs per run
- Toggle completion summary
- Optional mode to set matched items to Private instead of Trash
Built for large lists and long-running jobs. Everything goes to the WordPress Trash, so you can restore or permanently delete as you normally would.
Capabilities & security:
- Restricted to users who can
manage_options. - Nonce-protected AJAX endpoints.
- Conservative sanitization and server-side validation.
Compatibility notes:
- Works with sites using pretty permalinks. Mapping relies on WordPress
url_to_postid()and common URL variants. - Custom post types are supported if they use public, front-end URLs.
Installation
- Upload the plugin files to
/wp-content/plugins/bulk-trash-by-url/, or install from the Plugins screen. - Activate the plugin through the “Plugins” screen in WordPress.
- Go to Tools Bulk Trash by URL.
- Paste URLs (one per line), click “Find Items”, review the matched items, and start trashing.
FAQ
-
Will this permanently delete my posts?
-
No. Items are moved to the WordPress Trash. You can restore or permanently delete them from there.
-
Does it support custom post types?
-
Yes, provided the post type is public and has front-end URLs that
url_to_postid()can resolve. -
What happens if a URL doesn’t map to a post?
-
Unmatched URLs are listed after the mapping phase so you can review and resolve them.
-
I get timeouts. What can I do?
-
Reduce “Max Page Size” in Settings to make each AJAX batch smaller. You can also lower “Max URLs per run”.
-
Who can use the tool?
-
Only administrators (users with
manage_options) can access it.
Avis
Il n’y a aucun avis sur cette extension.
Contributeurs & développeurs
« Bulk Trash by URL » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
ContributeursTraduisez « Bulk Trash by URL » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Historique des changements
1.1
- New option: set matched items to Private instead of moving them to the Trash (disabled by default).
1.0
- Initial release under the new name.
- Two-step flow with URL mapping, selection, and batched trashing with pause/resume.
- Summary screen with detailed results.
- Settings tab for Mapping Batch Size, Max URLs per run, and summary toggle.
- Performance improvements for large lists.