{"id":281527,"date":"2026-03-01T14:09:48","date_gmt":"2026-03-01T14:09:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/media-trim-unused-media-cleaner-duplicate-image-remover\/"},"modified":"2026-03-10T05:59:05","modified_gmt":"2026-03-10T05:59:05","slug":"media-trim","status":"publish","type":"plugin","link":"https:\/\/snd.wordpress.org\/plugins\/media-trim\/","author":23300313,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.2","stable_tag":"1.0.2","tested":"6.9.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Media Trim \u2014 Unused & Duplicate Media Cleaner","header_author":"MD MEHEDI HASAN PARVEZ","header_description":"Clean up your WordPress media library by finding and removing unused, duplicate, and orphaned images. Reclaim disk space and optimize your site performance.","assets_banners_color":"375286","last_updated":"2026-03-10 05:59:05","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/media-trim","header_author_uri":"https:\/\/profiles.wordpress.org\/mehedi2509","rating":0,"author_block_rating":0,"active_installs":0,"downloads":295,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"mehedi2509","date":"2026-03-01 14:09:37"},"1.0.1":{"tag":"1.0.1","author":"mehedi2509","date":"2026-03-02 13:56:34"},"1.0.2":{"tag":"1.0.2","author":"mehedi2509","date":"2026-03-10 05:59:05"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3472751,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3472751,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3472751,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3472751,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3786,29823,233,247,219749],"plugin_category":[54],"plugin_contributors":[256852],"plugin_business_model":[],"class_list":["post-281527","plugin","type-plugin","status-publish","hentry","plugin_tags-cleanup","plugin_tags-duplicates","plugin_tags-media-library","plugin_tags-performance","plugin_tags-unused-media","plugin_category-security-and-spam-protection","plugin_contributors-mehedi2509","plugin_committers-mehedi2509"],"banners":{"banner":"https:\/\/ps.w.org\/media-trim\/assets\/banner-772x250.png?rev=3472751","banner_2x":"https:\/\/ps.w.org\/media-trim\/assets\/banner-1544x500.png?rev=3472751","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/media-trim\/assets\/icon-128x128.png?rev=3472751","icon_2x":"https:\/\/ps.w.org\/media-trim\/assets\/icon-256x256.png?rev=3472751","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Media Trim<\/strong> is the ultimate solution for keeping your WordPress media library clean and optimized. Stop wasting server space on unused images and forgotten uploads.<\/p>\n\n<p>Whether you're managing a small blog or a large content site, Media Trim scans your entire media library, identifies files that aren't being used anywhere, and gives you the power to safely remove them with a single click.<\/p>\n\n<h3>Why Choose Media Trim?<\/h3>\n\n<ul>\n<li><strong>Smart Detection:<\/strong> Advanced scanning algorithms detect truly unused media by checking posts, pages, custom post types, meta fields, widgets, and theme options.<\/li>\n<li><strong>Safe Cleanup:<\/strong> Files are moved to a trash system first, allowing you to restore them if needed before permanent deletion.<\/li>\n<li><strong>Duplicate Finder:<\/strong> Identify and merge duplicate files to save even more space.<\/li>\n<li><strong>File System Scanner:<\/strong> Find orphaned files on disk that aren't in the media library.<\/li>\n<\/ul>\n\n<h3>Key Features<\/h3>\n\n<ul>\n<li><strong>Unused Media Detection:<\/strong> Scan and identify media files not used anywhere on your site.<\/li>\n<li><strong>Duplicate Media Finder:<\/strong> Find files with identical content and merge them.<\/li>\n<li><strong>File System Scanner:<\/strong> Discover orphaned files in your uploads folder.<\/li>\n<li><strong>Trash System:<\/strong> Safe deletion with restore capability before permanent removal.<\/li>\n<li><strong>Bulk Actions:<\/strong> Delete, trash, or restore multiple files at once.<\/li>\n<li><strong>Detailed Reports:<\/strong> See exactly where each media file is being used.<\/li>\n<li><strong>Performance Optimized:<\/strong> Batch processing to handle large media libraries.<\/li>\n<\/ul>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to external third-party services to provide specific features. Below is a detailed disclosure of each service used:<\/p>\n\n<h4>Pexels API<\/h4>\n\n<p>This plugin includes an optional \"Stock Images\" feature that integrates with the <strong>Pexels API<\/strong> to search and import free stock photos directly into your site.<\/p>\n\n<ul>\n<li><strong>What it does:<\/strong> Provides a searchable library of free-to-use stock images within the \"Stock Images\" tab.<\/li>\n<li><strong>When data is sent:<\/strong> Only when you actively search for images or import a specific photo. No data is sent automatically or in the background.<\/li>\n<li><strong>What data is sent:<\/strong> Your search terms and pagination preferences are sent to Pexels. Your Pexels API key (if provided in Settings) is sent as an authorization header.<\/li>\n<li><strong>Service Provider:<\/strong> Pexels (Canva Pty Ltd)<\/li>\n<li><strong>Terms of Use:<\/strong> <a href=\"https:\/\/www.pexels.com\/terms-of-service\/\">https:\/\/www.pexels.com\/terms-of-service\/<\/a><\/li>\n<li><strong>Privacy Policy:<\/strong> <a href=\"https:\/\/www.pexels.com\/privacy-policy\/\">https:\/\/www.pexels.com\/privacy-policy\/<\/a><\/li>\n<\/ul>\n\n<h3>Development<\/h3>\n\n<p>This plugin uses <code>@wordpress\/scripts<\/code> for building the admin dashboard React application. The human-readable source code is located in the <code>admin\/dashboard\/<\/code> directory. To build the assets:<\/p>\n\n<ol>\n<li>Run <code>npm install<\/code> to install dependencies.<\/li>\n<li>Run <code>npm run build<\/code> to compile the production assets into <code>assets\/admin\/<\/code>.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Go to <strong>Plugins &gt; Add New<\/strong> in your WordPress dashboard.<\/li>\n<li>Search for <code>Media Trim<\/code>.<\/li>\n<li>Click <strong>Install Now<\/strong> and then <strong>Activate<\/strong>.<\/li>\n<li>Go to <strong>Media Trim<\/strong> in your admin menu and start scanning!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20is%20media%20trim%3F\"><h3>What is Media Trim?<\/h3><\/dt>\n<dd><p>Media Trim is a WordPress plugin that helps you find and remove unused, duplicate, and orphaned media files from your site.<\/p><\/dd>\n<dt id=\"is%20it%20safe%20to%20delete%20unused%20media%3F\"><h3>Is it safe to delete unused media?<\/h3><\/dt>\n<dd><p>Yes! Media Trim moves files to a trash system first. You can review and restore any file before permanently deleting it.<\/p><\/dd>\n<dt id=\"will%20this%20affect%20my%20live%20content%3F\"><h3>Will this affect my live content?<\/h3><\/dt>\n<dd><p>No. Media Trim only identifies files that are not being used anywhere. Your active content remains untouched.<\/p><\/dd>\n<dt id=\"can%20i%20undo%20a%20deletion%3F\"><h3>Can I undo a deletion?<\/h3><\/dt>\n<dd><p>Yes, files go to the Media Trim trash first. You can restore them any time before permanent deletion.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20builders%3F\"><h3>Does it work with page builders?<\/h3><\/dt>\n<dd><p>Yes! Media Trim scans post content, meta fields, and serialized data to detect usage in popular page builders like Elementor, Divi, and Beaver Builder.<\/p><\/dd>\n<dt id=\"how%20does%20duplicate%20detection%20work%3F\"><h3>How does duplicate detection work?<\/h3><\/dt>\n<dd><p>Media Trim compares file hashes to find identical content, regardless of filename. You can then choose which copy to keep and merge the duplicates.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2 - 10 March 2026<\/h4>\n\n<ul>\n<li>Fix: Bulk restore from trash now correctly handles failed restorations \u2014 trash records are preserved and success count is accurate.<\/li>\n<li>Fix: Scan completion error (\"Unexpected token\" \/ database column mismatch in ScanManager) resolved.<\/li>\n<li>Fix: Unused Media pagination now works correctly.<\/li>\n<li>Fix: Duplicates page pagination reduced to 10 items per page for better usability.<\/li>\n<li>Fix: Bulk delete permanently now uses safer JSON parsing for trash IDs.<\/li>\n<\/ul>\n\n<h4>1.0.1 - 2 March 2026<\/h4>\n\n<ul>\n<li>Fix: Resolved issues with the Duplicates feature.<\/li>\n<li>Added: Plugin icon, logo, and banner assets.<\/li>\n<\/ul>\n\n<h4>1.0.0 - 5 February 2026<\/h4>\n\n<ul>\n<li>Initial release to the WordPress repository.<\/li>\n<li>Added: Unused media scanner.<\/li>\n<li>Added: Duplicate media finder.<\/li>\n<li>Added: File system scanner for orphaned files.<\/li>\n<li>Added: Trash system with restore capability.<\/li>\n<li>Added: Bulk delete and restore actions.<\/li>\n<\/ul>","raw_excerpt":"Clean up your WordPress media library by finding and removing unused, duplicate, and orphaned media files. Reclaim disk space instantly.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/281527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=281527"}],"author":[{"embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mehedi2509"}],"wp:attachment":[{"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=281527"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=281527"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=281527"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=281527"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=281527"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/snd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=281527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}