You can configure caching options of cli in angular.json file. One of options is cache which gives you the option of disabling it
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"cache": {
"enabled": false
}
},
"projects": {}
}
Refers Links: https://stackoverflow.com/questions/69953135/clear-angular-cache-in-angular-folder