code: def unpublish_branch(self, branch):
          
  
          try:
              return self.git_exec(
                  ['push', self.remote.name, ':{0}'.format(branch)])
          except GitCommandError:
              _, _, log = self.git_exec(
                  ['fetch', self.remote.name, '--prune'],
                  with_extended_output=True)
              abort('Unpublish failed. Fetching.', log=log, type='unpublish')
docs: Unpublishes given branch.