.\" -*- mode: troff; coding: utf-8 -*- .TH "nix3-store-gc" "1" "" .RS .PP \fBWarning\fR .br This program is .UR @docroot@/development/experimental-features.md#xp-feature-nix-command \fBexperimental\fR .UE and its interface is subject to change. .RE .SH Name .LP \f(CRnix store gc\fR - perform garbage collection on a Nix store .SH Synopsis .LP \f(CRnix store gc\fR [\fIoption\fR\[u2026]] .SH Examples .IP "\(bu" 3 Delete unreachable paths in the Nix store: .LP .EX # nix store gc .EE .IP "\(bu" 3 Delete up to 1 gigabyte of garbage: .LP .EX # nix store gc --max 1G .EE .SH Description .LP This command deletes unreachable paths in the Nix store. .SH Options .IP "\(bu" 3 .UR #opt-dry-run \f(CR--dry-run\fR .UE .IP Show what this command would do without doing it. .IP "\(bu" 3 .UR #opt-max \f(CR--max\fR .UE \fIn\fR .IP Stop after freeing \fIn\fR bytes of disk space. .SS Logging-related options .IP "\(bu" 3 .UR #opt-debug \f(CR--debug\fR .UE .IP Set the logging verbosity level to \(oqdebug\(cq. .IP "\(bu" 3 .UR #opt-log-format \f(CR--log-format\fR .UE \fIformat\fR .IP Set the format of log output; one of \f(CRraw\fR, \f(CRinternal-json\fR, \f(CRbar\fR or \f(CRbar-with-logs\fR. .IP "\(bu" 3 .UR #opt-print-build-logs \f(CR--print-build-logs\fR .UE / \f(CR-L\fR .IP Print full build logs on standard error. .IP "\(bu" 3 .UR #opt-quiet \f(CR--quiet\fR .UE .IP Decrease the logging verbosity level. .IP "\(bu" 3 .UR #opt-verbose \f(CR--verbose\fR .UE / \f(CR-v\fR .IP Increase the logging verbosity level. .SS Miscellaneous global options .IP "\(bu" 3 .UR #opt-help \f(CR--help\fR .UE .IP Show usage information. .IP "\(bu" 3 .UR #opt-offline \f(CR--offline\fR .UE .IP Disable substituters and consider all previously downloaded files up-to-date. .IP "\(bu" 3 .UR #opt-option \f(CR--option\fR .UE \fIname\fR \fIvalue\fR .IP Set the Nix configuration setting \fIname\fR to \fIvalue\fR (overriding \f(CRnix.conf\fR). .IP "\(bu" 3 .UR #opt-refresh \f(CR--refresh\fR .UE .IP Consider all previously downloaded files out-of-date. .IP "\(bu" 3 .UR #opt-version \f(CR--version\fR .UE .IP Show version information. .RS .LP \fBNote\fR .PP See \c .UR @docroot@/command-ref/conf-file.md#command-line-flags \f(CRman nix.conf\fR .UE for overriding configuration settings with command line flags. .RE