class Git::Commands::Branch::Delete

Implements the ‘git branch –delete` command for deleting branches

@example Delete a single branch

delete = Git::Commands::Branch::Delete.new(execution_context)
result = delete.call('feature-branch')

@example Delete multiple branches

delete = Git::Commands::Branch::Delete.new(execution_context)
result = delete.call('branch1', 'branch2')

@example Force delete (works even if not merged)

delete = Git::Commands::Branch::Delete.new(execution_context)
result = delete.call('feature-branch', force: true)

@example Delete remote-tracking branch

delete = Git::Commands::Branch::Delete.new(execution_context)
result = delete.call('origin/feature', remotes: true)

@note ‘arguments` block audited against git-scm.com/docs/git-branch/2.53.0

@see Git::Commands::Branch

@see git-scm.com/docs/git-branch git-branch

@api private