def delete(cls, repo, *heads, **kwargs):
        """Delete the given heads

        :param force:
            If True, the heads will be deleted even if they are not yet merged into
            the main development stream.
            Default False"""
        force = kwargs.get("force", False)
        flag = "-d"
        if force:
            flag = "-D"
        repo.git.branch(flag, *heads)
def delete ( cls , repo , * heads , ** kwargs ) : force = kwargs . get ( "force" , False ) flag = "-d" if force : flag = "-D" repo . git . branch ( flag , * heads )
Delete the given heads

        :param force:
            If True, the heads will be deleted even if they are not yet merged into
            the main development stream.
            Default False