ti fs-git remove-git-worktree
Removes a linked worktree without recursively deleting shared clean-tree data.
Syntax
ti fs-git remove-git-worktree
--worktree-path <string>
[--dry-run]
[--file-system-id <string>]
[--force]
[--fs-token <string>]
[--help]
[--version]
Options
--worktree-path <string>: Mountedti fspath of the linked worktree. [required]--dry-run: Validate the request without applying changes.--file-system-id <string>: Select the file system. You can also setTI_FS_FILE_SYSTEM_ID.--force: Remove even when the linked worktree has local changes.--fs-token <string>: Set the file system user token. If omitted, usesTI_FS_TOKEN.--help: Display help information.--version: Display version information.
For options shared by all commands, see Global options.
Examples
Remove a Git worktree:
# Force removal when the isolated worktree still contains local changes. ti fs-git remove-git-worktree --file-system-id <file-system-id> --worktree-path /path/to/workspace/tidb-feature --force