deleteBranch

abstract suspend fun deleteBranch(branch: BranchReference): Boolean

Deletes a branch from a repository if it exists.

Return

true if the branch existed and could be deleted, else false.

Parameters

branch

the branch to delete