Fixed a bug in removing all shares from machine images (public shares were remaining in place)