Allow option to mark "managed not used" files as "temporary".

Created on 8 February 2022, over 3 years ago
Updated 25 August 2025, about 1 month ago

Issue #3038089 was marked "Outdated," but the problem it describes still exists: a likely use case for the "Managed not used" report is to find files that are supposed to be deleted. As it stands currently, the user would first have to find the file in the "Managed not used" report, delete it from the database, and then find it again in the "Not in database" report and delete it from there.

A patch was submitted to the previous issue:

https://www.drupal.org/files/issues/2020-09-16/3038089-mark-file-tempora... β†’

...which presumably is intended to allow users to change the status of "Managed not used" files from "Permanent" to "Temporary," after which they should be deleted in a near-future cron run. While the patch no longer applies to the 3.x branch, the idea seems a reasonable solution.

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wrd-oaitsd

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States bburg Washington, DC

    Patch does not apply to 4.2.3. Currently struggling to figure out how to purge a lot of files from a site that is approaching it's storage limit.

Production build 0.71.5 2024