# nix-collect-garbage > 사용되지 않거나 접근할 수 없는 nix 저장소 경로 삭제. > 세대는 `nix-env --list-generations` 명령어로 나열할 수 있습니다. > 더 많은 정보: . - 각 프로필의 현재 세대에서 사용하지 않는 모든 사용자 관련 store 경로 삭제: `nix-collect-garbage {{[-d|--delete-old]}}` - 오래된 store 경로 삭제를 시뮬레이션: `nix-collect-garbage {{[-d|--delete-old]}} --dry-run` - 30일보다 오래된 모든 store 경로 삭제: `nix-collect-garbage --delete-older-than 30d` - 시스템 전체에서 각 프로필의 현재 세대에서 사용하지 않는 모든 store 경로 삭제: `sudo nix-collect-garbage {{[-d|--delete-old]}}`