fixes #3664 - support deletion of installation media that's in use