nself clean
nself clean
Section titled “nself clean”Remove Docker resources associated with the current ɳSelf project.
Synopsis
Section titled “Synopsis”nself clean [flags]Description
Section titled “Description”nself clean removes Docker resources (stopped containers, unused images, dangling volumes, orphaned networks) scoped to the current ɳSelf project. By default it uses Docker label filters to only remove resources belonging to the current project, other Docker projects on your machine are not affected.
nself clean does not delete your .env files, data directories, or any user data. It only removes generated Docker artifacts. To remove generated configuration files (nginx configs, docker-compose.yml), use �P1� reset instead.
Use --all for a system-wide Docker cleanup (docker system prune). This requires confirmation and affects all Docker resources on the host, not just the ɳSelf project.
| Flag | Default | Description |
|---|---|---|
--all | false | System-wide Docker cleanup (requires confirmation) |
--help, -h | none | Show help |
Examples
Section titled “Examples”# Project-scoped cleanup (safe, recommended)nself clean
# System-wide Docker cleanup (affects all projects)nself clean --allWhat is preserved:
.envand all.env.*variant filesdata/andvolumes/directories- Your application source code
What is removed:
- Stopped ɳSelf project containers
- Unused images tagged to this project
- Dangling volumes (with
--all: all Docker system resources)