Nuxt 2 is reaching End-of-Life on June 30th, 2024.

nuxi cleanup

Remove common generated Nuxt files and caches.

Terminal
npx nuxi cleanup [rootDir]

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

  • .nuxt
  • .output
  • node_modules/.vite
  • node_modules/.cache
OptionDefaultDescription
rootDir.The root directory of the project.