Skip to content
Discussion options

You must be logged in to vote

After testing it for few days, I realized that the image and attachment system will calculate file hash to check if a file already exist on the server or not. In my case, it seems that the file (from a removed post) is still used by another post on my blog so it wasn't deleted automatically. Using above solution by me will delete the image, making all other posts who require the same image broken.

TLDR: Image and attachment will only be deleted if no other components use it.

Marking this question as answered.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AndhikaWB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant