Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-9097

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

      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?

              93e1e5ba154a aiiie
              fe7ee3825bc8 Kris Randall
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: