Branch: 1.0.x, Module: media_cleanup

Created on 13 September 2023, about 1 year ago
Updated 22 November 2023, 12 months ago

Project Description: Media Cleanup Tool

Welcome to the project page for the Media Cleanup Tool, a powerful Drupal module designed to help website administrators manage and clean up unused media files efficiently. This tool addresses the common challenge of managing media assets, such as images and files, on Drupal websites and ensures that your website remains organized and clutter-free.

Project Overview

The Media Cleanup Tool is a comprehensive solution for handling media files associated with content nodes on a Drupal website. It offers a three-phase approach to clean up media files, making it distinct from other similar projects:

  1. Database Cleanup: In the first phase, the tool identifies and deletes media files from database table entries, specifically from the 'file_usage' and 'file_managed' tables. This ensures that any references to unused media files are removed from the database.
  2. Field Cleanup: The second phase involves searching for media files within content fields. The batch process scans content fields and removes rows associated with unused media files, further optimizing the storage efficiency of your Drupal site.
  3. File Deletion: In the third phase, the tool deletes the physical media files from the server's files folder, ensuring that storage space is effectively reclaimed.

Key Features

Key features of the Media Cleanup Tool include:

  • Flexible Configuration: Users can configure the tool to select specific content types and filter media files based on their publishing status (published or unpublished).
  • Date Filtering: The tool allows users to specify a date and time range, enabling targeted cleanup of media files created within a specific timeframe.
  • Batch Processing: The tool efficiently processes media file cleanup tasks in batches, ensuring that large-scale operations do not impact website performance.
  • Error Handling: Comprehensive error handling ensures that any issues encountered during cleanup are appropriately logged and reported.

Project Page

For more information and to download the Media Cleanup Tool for your Drupal website, please visit the project page on Drupal.org:

Media Cleanup Project Page

Thank you for considering the Media Cleanup Tool for your Drupal website. We hope it enhances your media management and cleanup experience!

📌 Task
Status

Needs review

Component

Code

Created by

🇮🇳India kumareshbaksi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024