nuxt cleanup
Remove common generated Nuxt files and caches.
Terminal
npx nuxt cleanup [ROOTDIR] [--cwd=<directory>]
The cleanup command removes common generated Nuxt files and caches, including:
- your build directory, which is
.nuxtunlessbuildDirsays otherwise .outputdistnode_modules/.vitenode_modules/.cache
Arguments
| Argument | Description |
|---|---|
ROOTDIR | The root directory of your Nuxt project (default: .) |
Options
| Option | Default | Description |
|---|---|---|
--cwd=<directory> | Specify the root directory of your Nuxt project |