Skip to content

Feature: Auto-delete remote branches on task archive/delete #1430

@arnestrickmann

Description

@arnestrickmann

Feature Request

Description
Add a setting to automatically delete remote branches when a task is archived or deleted, so users don't have to manually clean up branches on GitHub.

Current Behavior

When a task is archived or deleted, the remote branch remains on GitHub. Users have to manually go to GitHub to delete stale branches.

Expected Behavior

A configurable setting that handles remote branch cleanup:

Options

  • Ask every time — Prompt the user at archive/delete: "Also delete remote branch?"
  • Always delete — Automatically delete the remote branch on archive/delete
  • Never delete — Current behavior, no cleanup (default)
  • Auto-delete after X days — Delete stale remote branches after a configurable time period

Setting location

Project settings or global settings — can be buried, just needs to be accessible without leaving Emdash.

Implementation

  • On task archive/delete, run git push origin --delete <branch> (or gh api equivalent)
  • Respect the user's configured preference
  • Handle gracefully if the branch was already deleted or never pushed

Why This Matters

Stale branches accumulate quickly when using Emdash for many parallel tasks. Manual cleanup on GitHub is tedious and easy to forget. Automating this keeps the remote repo clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions