Home Explore Blog Models CI



nix

src/nix/profile-remove.md
ee8fc2ccb18a2c5a5df94a83f6635f2b30921395057623b600000003000001d9
R""(

# Examples

* Remove a package by name:

  ```console
  # nix profile remove hello
  ```

* Remove all packages:

  ```console
  # nix profile remove --all
  ```

* Remove packages by regular expression:

  ```console
  # nix profile remove --regex '.*vim.*'
  ```


* Remove a package by store path:

  ```console
  # nix profile remove /nix/store/rr3y0c6zyk7kjjl8y19s4lsrhn4aiq1z-hello-2.10
  ```

# Description

This command removes a package from a profile.

)""

Chunks
df5f91a9 (1st chunk of `src/nix/profile-remove.md`)
Title: Nix Profile Remove Command Examples and Description
Summary
This chunk details the `nix profile remove` command, used for removing packages from a Nix profile. It provides several examples demonstrating how to remove packages by name, remove all packages, remove packages matching a regular expression, or remove a package using its specific store path.