Overview
Thetuist clean command removes cached artifacts from your local machine and optionally from remote storage. This helps reclaim disk space and resolve issues caused by corrupted or outdated cache files.
Usage
Arguments
The cache and artifact categories to clean. If no category is specified, everything is cleaned. Available categories:
plugins- Cached pluginsgeneratedAutomationProjects- Projects generated for automation tasksprojectDescriptionHelpers- Project description helpers cachemanifests- Manifests cacheeditProjects- Temporary edit projects cacheruns- Tuist runs cachebinaries- Cached binary frameworksselectiveTests- Selective testing cachedependencies- Swift Package Manager build directory
Options
Clean the remote cache stored on Tuist Cloud. This removes cached binaries from the server.
The path to the directory that contains the project to clean.
Short form of
--path.Examples
Clean all local artifacts
Clean specific categories
Clean plugin cache
Clean dependencies build directory
.build directory at the root of your project.
Clean remote cache
Clean specific category with path
When to use clean
You might want to runtuist clean when:
- Freeing disk space: Cache directories can grow large over time
- Resolving cache issues: Corrupted or outdated cache files causing build problems
- After major changes: When switching between significantly different branches or project states
- Plugin updates: After updating or removing plugins to clear stale plugin cache
- Remote cache issues: Use
--remoteto clear problematic cached binaries from Tuist Cloud
Cleaning local cache is safe and reversible - artifacts will be regenerated or re-downloaded as needed. However, cleaning remote cache with
--remote removes shared cached binaries for your entire team.