Closed mrporcles closed 7 years ago
Image deletion happens in the background and it can take a while if the image has been replicated to a lot of hosts. How long did you wait?
30 minutes and it is still in the datastore. I deleted another one previously (10 minutes before) as well and that one is also still there. I see a unused_image_marker file. Does it make use of this?
The deletion seems to have worked after leaving it overnight
Did it take "overnight", or you just didn't look at it for a while after the 30 minute mark?
From my reading of the code: every 60 minutes, we remove images that haven't been used in at least 30 minutes. (We don't remove the images immediately--it's part of a larger image cleaning process.) Depending on the time you deleted it relative to this background processing, it could be up to 90 minutes to delete it. (If I did my math right--I'm not quite awake yet.)
Deleting an image using ./photon image delete does not delete the corresponding image from the datastore of the hosts.
imgdeletecli.txt