What this solution does
Large websites, particularly online stores, often accumulate excessive data. The disk fills up with files that are no longer used by the system but continue to occupy space. Their growing number slows down site performance and increases hosting costs.
The CleanDisk module solves this problem. When a file record is deleted from the system, the actual file remains on the server, which frequently happens with infoblock images. The module adds functionality to search for unused files and move them to a trash bin, where they can be either permanently deleted or restored.
After installation, a CleanDisk subsection with Search and Trash items appears in the Services section of the administrative menu.
The Search page contains a form to specify initial directories for cleaning, file types to check, and additional file extensions. Verification is performed by checking for the presence of a partial file name in the b_file database table. The average disk cleaning time is 3 hours and depends on the number of files in the specified directory and server performance.
The Trash page displays the current status of the trash. It provides options to clear the trash, restore deleted files, or export the contents to a ZIP archive.
Important: The module's operation stops if the browser tab where it is running becomes inactive. Modern browsers suppress script execution in background tabs. If the cleanup page becomes inactive, server requests will be halted, and the process will terminate prematurely when the session expires.
To ensure reliable operation, launch the file search in a separate browser window without other open tabs. This window may be covered by other windows, but it must not be minimized.
General iT can install and configure this module and check how it works on your website.