Opened 6 years ago
Last modified 4 years ago
#45710 new feature request
New feature: deleted related files when deleting a page or post
Reported by: | gmr1970 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.9.8 |
Component: | Media | Keywords: | |
Focuses: | administration | Cc: |
Description
Hello,
Nowadays, when you delete a page or post there's the downside that the related images will remain on the server.
It would be great if WordPress keep track of where this image is being used. For example, image.png is used on 3 pages and 2 posts.
So, when you're sending a page or post to the trash can, it will be great if WordPress could check if the related images are being used on another pages or posts.
If not, the system could show a message: "X image is not being used on any page or post. Do you wish to send it to the trash can as well?"
The user would have the final choice if he wants to leave that file at the server or not.
And this would also could lead to a new function to find orphan images/files.
I suspect that this would be something better handled by a plugin, but moving it to the Media component for better visibility.