Back to Nuxt

nuxt cleanup

docs/4.api/4.commands/cleanup.md

4.4.4922 B
Original Source
<!--cleanup-cmd-->
bash
npx nuxt cleanup [ROOTDIR] [--cwd=<directory>]
<!--/cleanup-cmd-->

The cleanup command removes common generated Nuxt files and caches, including:

  • .nuxt
  • .output
  • node_modules/.vite
  • node_modules/.cache

Arguments

<!--cleanup-args-->
ArgumentDescription
ROOTDIR="."Specifies the working directory (default: .)
<!--/cleanup-args-->

Options

<!--cleanup-opts-->
OptionDefaultDescription
--cwd=<directory>Specify the working directory, this takes precedence over ROOTDIR (default: .)
<!--/cleanup-opts-->