File "in use" does not get set to "0" after being removed from content

Created on 27 March 2023, over 1 year ago

Problem/Motivation

Files are still set to "in use" even after the file is removed from the original content type. This makes it hard to remove the file through the normal Drupal clean up process.

Steps to reproduce

  1. Create site
  2. Enable `media` and `media library` modules
  3. Add new file field to `article` content type
  4. Create a new `article`, add a file and save it
  5. Edit new `article` by removing old file and adding a new one
  6. Go to /admin/content/files
  7. Verify that old files still shows in use

Proposed resolution

Since the content article no longer utilizes the file, it should reflect on the file usage as "0".

πŸ› Bug report
Status

Active

Version

9.5

Component
File systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jedgar1mx Detroit

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

Comments & Activities

Production build 0.71.5 2024