Cannot delete remote branch; "remote: permission denied to delete branch (name)"

XMLWordPrintable

      I have deleted a branch locally using :

      git branch -d (branch_name)

      I then attempted to delete the remote branch using :

      git push origin :(branch_name)

      however that command gives me the following error :

      _remote: permission denied to delete branch (branch_name)
      To https://(my_account)@bitbucket.org/specialsource-ondemand/(repo).git\\
      ! [remote rejected] (branch_name) (pre-receive hook declined)
      error: failed to push some refs to 'https://(my_account)@bitbucket.org/specialsource-ondemand/(repo).git'_


      Why am I unable to delete the branch at origin?
      Am I doing something wrong?

            Assignee:
            aiiie
            Reporter:
            Kris Randall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: