reimplemented domain deletion part. need examinations