def delete_refs(repo, refs, dry_run=False):
assert isinstance(repo, github.Repository.Repository), type(repo)<EOL>debug("<STR_LIT>".format(<EOL>n=len(refs),<EOL>repo=repo.full_name)<EOL>)<EOL>for r in refs:<EOL><INDENT>debug("<STR_LIT>".format(ref=r.ref))<EOL>if dry_run:<EOL><INDENT>debug('<STR_LIT>')<EOL>continue<EOL><DEDENT>r.delete()<EOL><DEDENT>
Note that only the ref to a tag can be explicitly removed.  The tag
    object will leave on until it's gargabe collected.