---
name: "nix-env-uninstall"
section: "1"
platform: "linux"
package: "nix-bin"
version: "2.26.3+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nix-env-uninstall"
---

# nix-env-uninstall(1)

remove packages from user environment

## Name

`nix-env --uninstall` - remove packages from user environment

## Synopsis

`nix-env` {`--uninstall` \| `-e`} *drvnames…*

## Description

The uninstall operation creates a new user environment, based on the current generation of the active profile, from which the store paths designated by the symbolic names *drvnames* are removed.

{{#include ./opt-common.md}}

{{#include ../opt-common.md}}

{{#include ./env-common.md}}

{{#include ../env-common.md}}

## Examples

```
$ nix-env --uninstall gcc
$ nix-env --uninstall '.*' (remove everything)
```
