2022-10-06 09:15:30 +00:00
|
|
|
---
|
2023-10-18 10:59:43 +00:00
|
|
|
title: 'nuxi cleanup'
|
2022-10-06 09:15:30 +00:00
|
|
|
description: "Remove common generated Nuxt files and caches."
|
2023-10-18 10:59:43 +00:00
|
|
|
links:
|
|
|
|
- label: Source
|
|
|
|
icon: i-simple-icons-github
|
|
|
|
to: https://github.com/nuxt/cli/blob/main/src/commands/cleanup.ts
|
|
|
|
size: xs
|
2022-10-06 09:15:30 +00:00
|
|
|
---
|
2022-07-25 15:19:17 +00:00
|
|
|
|
2023-10-18 10:59:43 +00:00
|
|
|
```bash [Terminal]
|
2024-01-15 11:23:40 +00:00
|
|
|
npx nuxi cleanup [rootDir]
|
2022-07-25 15:19:17 +00:00
|
|
|
```
|
|
|
|
|
2022-08-13 07:27:04 +00:00
|
|
|
The `cleanup` command removes common generated Nuxt files and caches, including:
|
2022-07-25 15:19:17 +00:00
|
|
|
- `.nuxt`
|
|
|
|
- `.output`
|
|
|
|
- `node_modules/.vite`
|
|
|
|
- `node_modules/.cache`
|
|
|
|
|
|
|
|
Option | Default | Description
|
|
|
|
-------------------------|-----------------|------------------
|
|
|
|
`rootDir` | `.` | The root directory of the project.
|