Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rm

Remove a cloned repository.

Alias: remove

Usage

jetti rm [OPTIONS] <REPO>

Arguments

  • <REPO> — Repository specifier (same formats as clone)

Options

--force   Skip the confirmation prompt

Behavior

  • Prompts for confirmation before deleting (unless --force)
  • Removes the repository directory only when the target is an actual git repo
  • Cleans up empty parent directories (owner, host) back to the root
  • Accepts the same specifier formats as clone

Examples

# Remove with confirmation
jetti rm owner/repo

# Remove without confirmation
jetti rm owner/repo --force

# Remove a GitLab repo
jetti rm gitlab.com/owner/repo --force