# LibTmux.TmuxEnvironment.RemoveAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Environment/TmuxEnvironmentOperations.cs#L167
- **Page:** https://libtmux.org/en/csharp/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.
