
CrushEdge Orphaned Upload Cleaner is a lightweight, high-performance maintenance plugin designed to detect and clean up orphaned files inside your wp-content/uploads/ directory.
In WordPress, an orphaned upload is a physical file present in your uploads directory that has no matching attachment record in the WordPress Media Library (wp_posts), nor is it a registered thumbnail/sub-size of an active attachment.
These “ghost files” accumulate over time from:
* Interrupted or cancelled media uploads.
* Deleted Media Library items where PHP unlinking failed or was skipped.
* Leftover files from uninstalled plugins, test imports, or manual FTP transfers.
* Old resized thumbnails left behind after themes or plugins change thumbnail dimensions.
.crushedge-trash/) with web access lockdown (.htaccess and web.config), completely eliminating accidental data loss.uploads/ with a single click.Move to Trash | Delete Permanently | Ignore Folder for active files; Restore | Delete Forever in Trash Can), keeping the primary action button column compact and uncluttered.position: sticky; top: 32px desktop / 46px mobile) when scrolling through long lists (20–200 items), with automatic WordPress admin bar offset compensation.uploads/...) with instant clipboard copy, animated checkmark feedback, and floating toast notifications.-150x150, -300x200), scaled images (-scaled), edits (-e123...), and modern Next-Gen companion files (.webp, .avif). If the parent image is in the Media Library, derivative files are automatically linked and protected from deletion.download-manager-files, wpdm-files), WooCommerce (woocommerce_uploads, wc-logs), Elementor, form uploads (Gravity Forms, WPForms, Fluent Forms, Formidable, Ninja Forms), backups (UpdraftPlus, Duplicator, All-in-One WP Migration), and caching systems.my-custom-folder) or wildcard patterns (e.g., *.zip) to exclusions.crushedge_orphan_protected_dirs, crushedge_orphan_protected_files, and crushedge_orphan_is_file_protected filters.WP_Filesystem and core wp_delete_file().CRUSHEDGE ORPHANED UPLOAD CLEANER IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, LOSS OF DATA, WEBSITE DOWNTIME, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FILE DELETIONS ARE PERMANENT AND IRREVERSIBLE. Always create and verify a complete backup of your WordPress database and wp-content/uploads/ directory before performing any cleanup or deletion operations.