Skip to content

completing

github-actions[bot] edited this page Aug 12, 2026 · 3 revisions

How-to: completing & cleanup

When a piece of work is merged or abandoned, tear the environment down. When you're done with a whole project — or want to uninstall — clean up the ~/.forge-fleet registry. For full flags see the command reference.

flowchart TD
    E[Environment done] -->|ffleet remove SLUG| R[Worktree deleted; ffleet-created branch deleted]
    R --> D{More environments in this project?}
    D -->|yes| E
    D -->|no| P[Project-level cleanup]
    P -->|ffleet project ls| L[See all known projects]
    P -->|ffleet project prune| PR[Drop stale entries + their ~/.forge-fleet home dirs]
    P -->|ffleet project rm ID| RM[Delete one project's ~/.forge-fleet/ID dir + registry entry]
Loading

Remove one environment

ffleet remove SLUG tears the environment down: it stops the container and deletes the worktree. If Forge Fleet created the branch, that branch is deleted too; a branch you brought in with --from is left alone.

$ ffleet remove my-feature
$ ffleet remove my-feature -y   # skip the confirmation prompt

remove surfaces unpushed/uncommitted work before deleting so you don't lose it by surprise. This is irreversible — if you only want the container gone, use ffleet stop instead.

The project registry (~/.forge-fleet)

Forge Fleet tracks the projects it knows about in ~/.forge-fleet/registry.json, with each project's home data under ~/.forge-fleet/{id}/. The ffleet project commands manage that registry — useful for multi-project cleanup and uninstalling.

  • ffleet project ls — list all known projects (add --json). Start here.

    $ ffleet project ls
  • ffleet project prune — remove stale registry entries and delete their ~/.forge-fleet home directories. Good housekeeping after you've deleted repos. Prompts first; -y to skip.

    $ ffleet project prune
  • ffleet project rm PROJECT_ID — permanently delete one project's ~/.forge-fleet/{id} directory and its registry entry. Prompts first; -y to skip.

    $ ffleet project rm creator-ai

Uninstalling Forge Fleet

To leave no trace:

  1. ffleet remove every remaining environment (or ffleet ls per project to find them).
  2. ffleet project prune, or ffleet project rm ID for each project, to clear ~/.forge-fleet.
  3. Delete the ffleet binary from your PATH.

Removing environments deletes worktrees and ffleet-created branches — double-check nothing is unpushed first.

Clone this wiki locally