add redDevice delete regDevice