Debian Codegraph @

docs/content/en/commands/hugo_mod_clean.md

raw
1 ---
2 title: "hugo mod clean"
3 slug: hugo_mod_clean
4 url: /commands/hugo_mod_clean/
5 ---
6 ## hugo mod clean
7
8 Delete the Hugo Module cache for the current project
9
10 ### Synopsis
11
12 Delete the Hugo Module cache for the current project.
13
14 ```
15 hugo mod clean [flags] [args]
16 ```
17
18 ### Options
19
20 ```
21 --all clean entire module cache
22 -b, --baseURL string hostname (and path) to the root, e.g. https://spf13.com/
23 --cacheDir string filesystem path to cache directory
24 -c, --contentDir string filesystem path to content directory
25 -h, --help help for clean
26 --pattern string pattern matching module paths to clean (all if not set), e.g. "**hugo*"
27 --renderSegments strings named segments to render (configured in the segments config)
28 -t, --theme strings themes to use (located in /themes/THEMENAME/)
29 ```
30
31 ### Options inherited from parent commands
32
33 ```
34 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
35 --config string config file (default is hugo.yaml|json|toml)
36 --configDir string config dir (default "config")
37 -d, --destination string filesystem path to write files to
38 -e, --environment string build environment
39 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
40 --logLevel string log level (debug|info|warn|error)
41 --noBuildLock don't create .hugo_build.lock file
42 --quiet build in quiet mode
43 -M, --renderToMemory render to memory (mostly useful when running the server)
44 -s, --source string filesystem path to read files relative from
45 --themesDir string filesystem path to themes directory
46 ```
47
48 ### SEE ALSO
49
50 * [hugo mod](/commands/hugo_mod/) - Manage modules