تخطَّ إلى المحتوى

nself clean

هذا المحتوى غير متوفر بلغتك بعد.

Remove Docker resources associated with the current ɳSelf project.

nself clean [flags]

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.

FlagDefaultDescription
--allfalseSystem-wide Docker cleanup (requires confirmation)
--help, -hnoneShow help
Terminal window
# Project-scoped cleanup (safe, recommended)
nself clean
# System-wide Docker cleanup (affects all projects)
nself clean --all

What is preserved:

  • .env and all .env.* variant files
  • data/ and volumes/ 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)

Commands | Home