nuxt cleanup

Source
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 .nuxt unless buildDir says otherwise
  • .output
  • dist
  • node_modules/.vite
  • node_modules/.cache

Arguments

ArgumentDescription
ROOTDIRThe root directory of your Nuxt project (default: .)

Options

OptionDefaultDescription
--cwd=<directory>Specify the root directory of your Nuxt project