# LibTmux.TmuxEnvironment.RemoveAsync

- **Module:** LibTmux.TmuxEnvironment
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Environment/TmuxEnvironmentOperations.cs#L164
- **Page:** https://libtmux.org/reference/dotnet/libtmux-tmuxenvironment-removeasync/

```
LibTmux.TmuxEnvironment.RemoveAsync(name: string, cancellationToken: CancellationToken) -> Task
```

Marks a variable removed for the panes tmux spawns.

This is not the same as unsetting. tmux remembers the removal so that a
pane it spawns does not inherit the variable from its own parent.

## Parameters

- `name` (string) — The variable name.
- `cancellationToken` (CancellationToken) — Cancels the tmux command.
