WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#43730 closed enhancement (maybelater)

Option to delete image when deleting post.

Reported by: catsfoto1se Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.5
Component: Media Keywords:
Focuses: Cc:

Description

I suggest the option to delete the image (s) in a post when deleting the post

The reasons I would like to see this is because I uses a "user post" plugin, so users can post, and now when deleting unwanted, or duplicate l post, I must manually find the right image, and delete it.

Otherwise the system would be clogged with duplicate picture and stuff..

As it is now, even if I only save a draft, and then delete it, I have to manually find the picture and delete them...

Change History (1)

#1 @joemcgill
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Hi @catsfoto1se,

Thanks for the suggestion. Currently, WordPress doesn't keep track of all the posts or pages an image might be included in, so deleting images while deleting a post could accidentally break other posts where this image is in use.

For now, I'm going to close this as a maybe later and we could consider it again in the future.

Note: See TracTickets for help on using tickets.