Deleting a device or a device group