Delete .m2 in case of maven and .cache directory containing tools related cache like Gradle. 2. Remove all environment variables 3. Take a backup of registry and clean maven entries, if any