optimize domain deletion