hot to clean gradle code example Example 1: gradle cache clean rm -rf $HOME/.gradle/caches/ Example 2: how to clear gradle cache gitignore git rm -r --cached .idea/