when you delete image from web gui doesnt delete from dir
-
hi all,
when i delete an image from the web gui, when i ssh into my server and do a
ls /images
i still see it there so it doesnt look like when you delete it from the web gui images, it doesnt delete it on the server
i can do a
rm -rf /images/test
can anyone please tell me why this happens?
thanks,
rob -
@robertkwild This is expected behavior.
When you delete an image from the UI, there’s a checkbox to confirm you want to delete the associated files as well. This is not present when you delete the image definition from the list definition.
It’s intended. The image data contains actual data. So just deleting the files can be unsafe. People make mistakes all the time, but to have to recreate the entire image (including the data) simply because somebody deleted the definition unknowningly? By adding in a check to ensure you mean to delete it, we save you some time.
-
thanks @Tom-Elliott is it ok to ssh in and do a rm -rf on the test dir?
-
i did a rm -rf test, now when i look on the dashboard it has now got the right size
-
@robertkwild Yes, it’s perfectly safe for you to manually deleted the image directory/files. You are the administrator.