def delete_branch(self, branch_name, message=None, author=None):
<EOL>self.create()<EOL>logger.info("<STR_LIT>", branch_name, format_path(self.local))<EOL>self.context.execute(*self.get_delete_branch_command(<EOL>author=(coerce_author(author) if author else self.author),<EOL>message=(message or ("<STR_LIT>" % branch_name)),<EOL>branch_name=branch_name,<EOL>))<EOL>
Delete or close a branch in the local repository.

:param branch_name: The name of the branch to delete or close (a string).
:param message: The message to use when closing the branch requires a
                commit (a string or :data:`None`, defaults to the
                string "Closing branch NAME").
:param author: Override :attr:`author` (refer to
               :func:`coerce_author()` for details
               on argument handling).