<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`WorkspaceLeaf`](WorkspaceLeaf) › [`detach`](WorkspaceLeaf/detach) ## WorkspaceLeaf.detach() method **Signature:** ```typescript detach(): void; ``` **Returns:** `void`