# LibTmux.TmuxEnvironment.RemoveAsync

- **Module:** LibTmux.TmuxEnvironment
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Environment/TmuxEnvironmentOperations.cs#L167
- **Page:** https://libtmux.org/en/dotnet/latest/reference/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.
