aboutsummaryrefslogtreecommitdiff
path: root/src/nix/profile-wipe-history.md
blob: b4b262864634b9bb61bac1a6d47ea40d74adb731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.

)""