code: def delete_refs(repo, refs, dry_run=False):
      
  
      assert isinstance(repo, github.Repository.Repository), type(repo)
  
      debug("removing {n} refs from {repo}".format(
          n=len(refs),
          repo=repo.full_name)
      )
  
      for r in refs:
          debug("  deleting {ref}".format(ref=r.ref))
          if dry_run:
              debug('    (noop)')
              continue
  
          r.delete()
docs: Note that only the ref to a tag can be explicitly removed.  The tag
      object will leave on until it's gargabe collected.