1--- 2title: "hugo mod clean" 3slug: hugo_mod_clean 4url: /commands/hugo_mod_clean/ 5--- 6## hugo mod clean 7 8Delete the Hugo Module cache for the current project. 9 10### Synopsis 11 12Delete the Hugo Module cache for the current project. 13 14Note that after you run this command, all of your dependencies will be re-downloaded next time you run "hugo". 15 16Also note that if you configure a positive maxAge for the "modules" file cache, it will also be cleaned as part of "hugo --gc". 17 18 19 20``` 21hugo mod clean [flags] 22``` 23 24### Options 25 26``` 27 --all clean entire module cache 28 -h, --help help for clean 29 --pattern string pattern matching module paths to clean (all if not set), e.g. "**hugo*" 30``` 31 32### Options inherited from parent commands 33 34``` 35 --config string config file (default is path/config.yaml|json|toml) 36 --configDir string config dir (default "config") 37 --debug debug output 38 -e, --environment string build environment 39 --ignoreVendor ignores any _vendor directory 40 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern 41 --log enable Logging 42 --logFile string log File path (if set, logging enabled automatically) 43 --quiet build in quiet mode 44 -s, --source string filesystem path to read files relative from 45 --themesDir string filesystem path to themes directory 46 -v, --verbose verbose output 47 --verboseLog verbose logging 48``` 49 50### SEE ALSO 51 52* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. 53 54