Delete a worktree

Steps

  1. Select Delete worktree

    In a conversation working in the worktree, select the trash button at the end of the band at the top of the message box. Or, in the conversation list, open the three-dot menu on the worktree’s heading and choose Delete worktree.

    A conversation working in a worktree, with the colored band at the top of the message box and a trash button at its end. Highlighted: Delete worktree.A conversation working in a worktree, with the colored band at the top of the message box and a trash button at its end. Highlighted: Delete worktree.
  2. Read the agent’s reply

    Enjoy sends the message right away, with no window to confirm, such as “Delete the dark-mode worktree.” Once the worktree is gone, its conversations note it, such as “The dark-mode worktree was deleted. This conversation is back in the main project folder.” Their next messages work in the main folder.

Good to know

  • There’s no warning first. If the worktree has anything you want to keep, tell its agent in a message before you select the button, or ask it to commit or merge that work.
  • From the conversation list, the message goes to the conversation right under the worktree’s heading, which is the one most recently active there.
  • The message is a normal message in the conversation. If the agent is working, it reaches the agent the way anything you type then does.
  • Enjoy notices whenever an agent removes a worktree, and moves its conversations back to the main folder.
  • A worktree with no conversations isn’t in the conversation list. To delete it, ask an agent in any conversation.
  • The iPhone app has no delete button. Ask in a message instead: “Delete this worktree.”

If something goes wrong

The agent doesn’t delete the worktree

The agent says why in its reply, such as changes in the worktree that aren’t committed. Reply with what you’d like it to do, such as “Discard those and delete it.”

“This conversation couldn’t load. Start a new conversation.”

Enjoy couldn’t send the message, because this conversation can’t take any. Start a new conversation and ask there.

See also

  1. 01Try ideas side by side in worktreesBranches & changes · 5 min
  2. 02Merge a worktree into your projectBranches & changes · 2 min
  3. 03Undo changes an agent madeBranches & changes · 2 min
  4. 04Move a conversation into a worktreeBranches & changes · 2 min

Did this help?

Service

If Enjoy doesn’t work as this manual describes, a person will help.