Delete a branch.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        name
            The name of the branch to delete.

    Returns:
        The response of the DELETE request.

def delete_branch(profile, name):
    """Delete a branch.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        name
            The name of the branch to delete.

    Returns:
        The response of the DELETE request.

    """
    ref = "heads/" + name
    data = refs.delete_ref(profile, ref)
    return data