Remove the `ref` folder before running compliance (#20373)