Core Library0.xAPI reference

Choose documentation 2

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

cmdlet libtmux-powershell

LibTmux.Remove-TmuxWindow

Remove a physical window and all its session links.

Source and package
Qualified name
LibTmux\Remove-TmuxWindow
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/RemoveTmuxWindowCommand.cs

Description

Remove the supplied native LibTmux.Window from every session that links it, including repeated links in the same session. This destroys its panes. To remove only one session placement, use Remove-TmuxWindowLink; this command always kills the physical window.

The endpoint and daemon generation come from the native handle. This high-impact operation requests confirmation by default. WhatIf performs no acquisition or mutation. Cancellation does not restore removed resources.

Notes

Failures use Tmux.WindowRemoveFailed and retain the original core exception, its dispatch information and the failed owner. ErrorAction Continue permits later owners to be processed; ErrorAction Stop stops on the first failure. A missing target remains an error. No mutation is retried. Previously captured handles retain their old data after removal and are not refreshed in place.

Command details

Command type
cmdlet
Confirmation
Supports -WhatIf and -Confirm; confirm impact: High.
Positional binding
Enabled.
Pipeline inputs
LibTmux.Window: A native LibTmux.Window selected from an explicit endpoint.
Outputs
System.Void
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

None: No success objects are emitted. An empty input pipeline performs no work.

Examples

Example 1 Remove the previously selected native $window from an endpoint you own. This example explicitly suppresses confirmation; omitting Confirm uses the normal high-impact confirmation behavior. View source

Terminal window
$window | LibTmux\Remove-TmuxWindow -Confirm:$false

Same owner

containment 1 of 58 shown

Other members of LibTmux whose names share Remove-TmuxWindow. They sit on the same type; that does not make them behave alike.

All 58 members of LibTmux

Recorded calls

source calls
No call edges in the PowerShell model.

The PowerShell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux\Remove-TmuxWindow.

tmux command

task material

The tmux commands behind Remove-TmuxWindow.

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss Remove-TmuxWindow.

Esc
Search in

Type to search.

Reference previewOpen reference