delete output dir, avoid deprecated API