Learn Nuxt with a Collection of 100+ Tips!

nuxi cleanup

Remove common generated Nuxt files and caches.
Terminal
npx nuxi cleanup [ROOTDIR] [--cwd=<directory>]

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

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

Arguments

ArgumentDescription
ROOTDIR="."Specifies the working directory (default: .)

Options

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