Home Explore Blog Models CI



nix

1st chunk of `src/nix/profile-wipe-history.md`
8482ea1205cc83327c74ed45369489fed0bd65ce3848fee600000001000001f6
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.

)""

Title: nix profile wipe-history Command
Summary
The `nix profile wipe-history` command is used to delete non-current versions of a Nix profile, making it impossible to roll back to those specific versions. By default, it removes all non-current versions. An optional argument, `--older-than N`d, allows users to specify that only non-current versions older than N days should be deleted, as demonstrated by an example removing versions older than 100 days.