remove device if it has no connections