Doesn't matter what version, it's just implemented this way... I can think of scenario's where it's good that the actual file is not deleted physically. Imaging what would happen if you still have a link somewhere from within any page in your site? I'm pretty sure there's other reasons...
Anyway, if you don't like this, either create a work item on Codeplex and vote for it or if you really want to get rid of those files, wire up an event handler that'll delete the file physically when the media item is being deleted.
Thanks for your feedback. I will try to look at your link asap.
But would it be nice if, when trying to delete the image, some sort of check is triggerd that will look if the file is in use, allowing the file to be deleted or not ?
EDIT: Perhaps if you're using v4.5 or above you can benefit from using this package: http://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping I must admit that I have not been using it myself so I'm a but unsure how it works and exactly what it does. But maybe it's worth trying out. Just a thought...
Deleting images while not delete them from the server
Hi,
When I delete images from the media library, there are not removed from the media folder on webserver.
In the interface they are gone, but not on the server.
Is this a permission issue? Or is this bug?
Kind regards
Tim
Hi Tim
What version of Umbraco are you using?
/Jan
Doesn't matter what version, it's just implemented this way... I can think of scenario's where it's good that the actual file is not deleted physically. Imaging what would happen if you still have a link somewhere from within any page in your site? I'm pretty sure there's other reasons...
Anyway, if you don't like this, either create a work item on Codeplex and vote for it or if you really want to get rid of those files, wire up an event handler that'll delete the file physically when the media item is being deleted.
More info and good starting point on event handlers can be found in the wiki section: http://our.umbraco.org/wiki/reference/api-cheatsheet/using-applicationbase-to-register-events
Cheers,
/Dirk
Hi,
First of all, I'm sorry for the late repy.
Thanks for your feedback. I will try to look at your link asap.
But would it be nice if, when trying to delete the image, some sort of check is triggerd that will look if the file is in use, allowing the file to be deleted or not ?
Thanks for your info
Tim
Hi Tim
I think this is the package for you if you want to check what media is being used: http://our.umbraco.org/projects/backoffice-extensions/thefarm-media-link-checker
However it does not seem like it's fully compatible with v4.5> of Umbraco according to this list of tested packages for v4.5 http://our.umbraco.org/wiki/reference/packaging/umbraco-45-compatibility/umbraco-45-package-testing so if that is the version you're using I'm afraid it's not of much use.
EDIT: Perhaps if you're using v4.5 or above you can benefit from using this package: http://our.umbraco.org/projects/backoffice-extensions/falm-housekeeping I must admit that I have not been using it myself so I'm a but unsure how it works and exactly what it does. But maybe it's worth trying out. Just a thought...
Hope this helps.
/Jan
is working on a reply...