nix-super/src/nix/profile-wipe-history.md

21 lines
502 B
Markdown
Raw Normal View History

2021-09-14 21:35:12 +03:00
R""(
# Examples
* Delete all versions of the default profile older than 100 days:
```console
# nix profile wipe-history --profile /tmp/profile --older-than 100d
removing profile version 515
removing profile version 514
```
# Description
This command deletes non-current versions of a profile, making it
impossible to roll back to these versions. By default, all non-current
versions are deleted. With `--older-than` *N*`d`, all non-current
versions older than *N* days are deleted.
)""