added support for device and user delete with connections