add deleteRoom and leaveRoom api