vix clean
vix clean removes local project cache directories.
Use it when you want to clean generated state from the current project without deleting the global Vix cache.
vix cleanOverview
vix clean is a project-local cleanup command.
It removes only:
.vix/
build/2
It does not remove global Vix data.
That means it keeps:
~/.vix/
~/.vix/registry/
~/.vix/store/
~/.vix/global/
~/.vix/cache/2
3
4
5
Use vix clean when the project-local state is stale, broken, or no longer needed.
Usage
vix cleanWhat it removes
vix clean removes these directories from the current project:
.vix/
build/2
Example:
my-app/
├── .vix/
├── build/
├── src/
├── vix.app
└── vix.json2
3
4
5
6
After:
vix cleanthe project becomes:
my-app/
├── src/
├── vix.app
└── vix.json2
3
4
What it does not remove
vix clean does not remove global Vix state.
It does not remove:
~/.vix/
~/.vix/registry/index/
~/.vix/store/git/
~/.vix/global/installed.json
~/.vix/cache/build/2
3
4
5
So your registry index, global packages, and global store remain available.
Basic usage
Run it inside a Vix project:
cd api
vix clean2
Output shape:
Clean
removing .vix/
removing build/
✔ Project cache cleaned2
3
4
5
If nothing exists to clean:
Clean
⚠ Nothing to clean2
3
When to use it
Use vix clean when:
local generated state is stale
the project cache is broken
you want a fresh local build directory
you want to remove generated project files
you want to retry dependency integration cleanly2
3
4
5
Common cases:
vix clean
vix install
vix build2
3
or:
vix clean
vix install
vix dev2
3
Clean before rebuilding
vix clean
vix build2
Use this when you want to remove the default local build directory before building again.
Clean before development mode
vix clean
vix install
vix dev2
3
Use this when project-local generated state may be stale before running development mode.
Clean after dependency issues
vix clean
vix install
vix check --tests2
3
Use this when dependency integration files under .vix/ may be outdated or broken.
Difference between vix clean and vix reset
| Command | Purpose |
|---|---|
vix clean | Remove .vix/ and build/ from the current project. |
vix reset | Run project cleanup and reinstall project dependencies. |
Use vix clean when you only want to delete local generated state.
Use vix reset when you want cleanup plus dependency reinstall.
Clean workflow
Manual workflow:
vix clean
vix install
vix build2
3
Equivalent higher-level workflow:
vix reset
vix build2
Important behavior
vix clean ignores extra arguments in the current implementation.
The intended command is:
vix cleanThere are no command options in the current implementation.
Options
vix clean currently has no options.
| Command | Description |
|---|---|
vix clean | Remove .vix/ and build/ from the current project. |
vix clean --help | Show command help. |
Commands reference
| Command | Description |
|---|---|
vix clean | Clean project-local generated state. |
vix reset | Clean and reinstall project dependencies. |
vix install | Install dependencies from vix.lock. |
vix build | Build the project. |
vix dev | Run the development workflow. |
vix info | Inspect Vix paths and cache locations. |
vix store | Manage the local package store. |
Common workflows
Clean local project state
vix cleanClean and reinstall dependencies
vix clean
vix install2
Clean and rebuild
vix clean
vix install
vix build2
3
Clean before dev mode
vix clean
vix install
vix dev2
3
Clean before validation
vix clean
vix install
vix check --tests2
3
Common mistakes
Expecting vix clean to remove global cache
vix clean does not remove:
~/.vix/For global store cleanup, use:
vix store path
vix store gc --project --dry-run2
For registry metadata, use:
vix registry path
vix registry sync2
For environment inspection, use:
vix infoExpecting vix clean to reinstall dependencies
vix clean only removes local directories.
After cleaning, run:
vix installor use:
vix resetwhen you want cleanup plus reinstall.
Running outside the project directory
Wrong:
cd ..
vix clean2
Correct:
cd api
vix clean2
vix clean works relative to the current directory.
Expecting it to remove every build directory
The current implementation removes:
.vix/
build/2
It does not remove every possible custom build folder.
If your project uses a custom build folder such as:
build-ninja/
build-release/2
remove it manually or use the command that created it if another workflow manages that directory.
Expecting it to remove global packages
vix clean does not remove global packages.
Use:
vix list -g
vix uninstall -g <package>2
for global packages.
Troubleshooting
Nothing to clean
This means neither .vix/ nor build/ exists in the current directory.
It is not an error.
You can continue with:
vix install
vix build2
Project still behaves strangely after clean
Run:
vix resetor manually run:
vix clean
vix install
vix check --tests2
3
Dependency state still looks wrong
Refresh the registry and reinstall:
vix registry sync
vix clean
vix install2
3
Global cache issue remains
Inspect Vix global paths:
vix infoThen inspect the store:
vix store pathPreview cleanup before deleting anything:
vix store gc --project --dry-runBest practices
Run vix clean from the project root.
Use it for project-local generated state only.
Run vix install after cleaning when the project depends on registry packages.
Use vix reset when you want the full clean plus reinstall workflow.
Use vix info before touching global cache or store data.
Do not use vix clean when you only want to remove a dependency. Use vix remove.
Do not use vix clean when you want to remove Vix from the machine. Use vix uninstall.
Related commands
| Command | Purpose |
|---|---|
vix reset | Clean and reinstall project dependencies. |
vix install | Install dependencies from vix.lock. |
vix build | Build the project. |
vix dev | Run the project in development mode. |
vix check | Validate project health. |
vix info | Show Vix paths and cache locations. |
vix store | Manage the local package store. |
vix remove | Remove a project dependency. |
vix uninstall | Remove Vix or a global package. |
Next step
Continue with project reset.