add support for deleting a deviceType
add support for deleting a device and a deviceType