WordPress plugin intelligence profile

MCOD Delete Media by Content

Bulk delete WordPress media files linked to any post type. Clean your media library in batches with smart exclusions and WooCommerce/ACF support.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version1.0.2
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 5.0 · PHP 7.4
Directory statusactive
Last directory update5 Mar 20268mo ago
Active installations100Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records MCOD Delete Media by Content version 1.0.2 as active, updated 8mo ago and tested up to WordPress 6.9.

Overview

About this plugin

MCOD Delete Media by Content allows you to bulk delete WordPress media files attached to a specific post type. Whether you need to clean up orphaned images from deleted WooCommerce products, remove PDFs tied to a custom post type, or purge an unused media library section after a content migration, this plugin handles the process in batches.

Use it to clean your WordPress media library without touching media that is actively used elsewhere on your site based on your exclusions.

Free Up Server Inodes:

Hosting servers have a limit on the number of files (inodes) they can store, regardless of disk space. Each WordPress attachment generates multiple thumbnail files, which rapidly consumes inodes. When the inode limit is reached, no new files can be created on the server.

This plugin permanently deletes media files and all their generated thumbnails from the filesystem in batches, helping to reduce your inode count and restore your server’s ability to handle new uploads.

Dual Detection Strategy:

This plugin uses a dual detection strategy to find media linked to your chosen post type by checking multiple fields:

1. Direct Parent: Attachments whose post_parent points to a post of the selected type.

2. Meta References: Attachment IDs stored in postmeta — including WooCommerce product galleries ( _product_image_gallery ), ACF Image & Gallery fields, featured images saved as meta, and any other custom field referencing an attachment ID.

This helps identify attachments properly without inadvertently affecting active media from other areas.

Smart Cross-Type Exclusions — Protect Shared Media:

Before deleting, the plugin cross-checks each attachment against other post types you select. If a product image is also used as a featured image on a Page or referenced in a Post, it will be automatically skipped — preventing broken images across your site.

Key Features:

  • Bulk Delete by Post Type: Target Products, Pages, Posts, or any registered custom post type.
  • Media Type Filter: Scope deletion to Images only, PDFs, Videos, Audio, or all attachments.
  • Cross-Type Exclusions: Protect attachments shared with other post types from accidental deletion.
  • Preview Mode: Count and preview a sample of media to be deleted (with direct edit links) before running.
  • Safe Batch Processing: Processes in configurable batches of 1–100 items to avoid PHP/server timeouts on large media libraries.
  • Real-Time Progress Log: Live status updates so you always know what is happening.
  • WooCommerce & ACF Compatible: Detects images in product galleries, ACF image/gallery fields, and other postmeta.
  • Fully Translatable: Internationalization-ready with a.pot file included.

⚠️ This plugin permanently deletes media files from the database and the server filesystem. Always create a full backup before running any deletion.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • bulk delete
  • delete media
  • attachment
  • cleanup
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 5.0 · PHP 7.4
Update activity5 Mar 20268mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.