Skip to main content

Overview

Archiving removes completed tasks from your active view and cleans up their worktree directories. This keeps your project dashboard focused and reclaims disk space.

When to Archive

Archive tasks when:
  • Changes have been merged to the target branch
  • Work was completed but not needed (exploratory tasks)
  • Task was superseded by another approach
  • You need to free up disk space
Archiving deletes the task’s worktree directory. Make sure all wanted changes are committed and pushed/merged before archiving.

How to Archive

Single Task

  1. Open the task’s context menu (⋯)
  2. Click Archive
  3. Confirm the action

Bulk Archive

  1. Go to Project → Tasks list view
  2. Select multiple completed tasks
  3. Click Archive Selected

What Happens When You Archive

ComponentAction
WorktreeDeleted from .zenflow/tasks/{task_id}
BranchOptionally deleted (configurable)
Task recordMoved to archived view
Chat historyPreserved for reference
ArtifactsPreserved in archived view

Viewing Archived Tasks

Archived tasks aren’t gone—they’re just hidden from the active view:
  1. Go to Project → Tasks
  2. Click the Archived filter
  3. Browse or search archived tasks
You can reference archived task history, artifacts, and chat logs at any time.

Restoring Archived Tasks

If you need to continue work on an archived task:
  1. Find the task in the archived view
  2. Click Restore
  3. Zenflow recreates the worktree from the branch
Restoration requires the task branch to still exist. If the branch was deleted, you’ll need to create a new task.

Automatic Cleanup

Configure automatic archiving in project settings:
SettingDescription
Auto-archive after mergeArchive tasks when their PR is merged
Archive stale tasksArchive tasks inactive for N days
Delete branches on archiveRemove task branches when archiving

Disk Space Management

Each worktree is a full copy of your repository’s working files. Monitor usage:
du -sh .zenflow/tasks/*
Signs you need to archive:
  • Disk space warnings
  • Slow Git operations
  • Many stale tasks in the Kanban board

Next Steps

Tasks Overview

Complete guide to task management

Git Worktrees

How task isolation works