title: Why can't I delete a remote branch in BitBucket?
body: <p>When I try to do <code>git push origin :foo-branch'</code>, I get an error:</p>
  
  <pre><code>error: unable to delete 'foo-branch': remote ref does not exist
  error: failed to push some refs to 'git@bitbucket.org:username/repo-name.git'
  </code></pre>
  
  <p>I know the branch exist, because:</p>
  
  <ul>
  <li>I see it in <code>git log --all</code>;</li>
  <li>I see it in the web interface on BitBucket</li>
  </ul>
  
  <p>What's more, even after I run <code>git remote prune origin</code>, I can still see it, when I run <code>git branch -a</code>:</p>
  
  <p><code>remote/origin/foo-branch</code></p>
  
  <p>I have also tried <code>git fetch -p origin</code> and still couldn't solve this problem.</p>