Added the ability to clear virtual devices that are not used