Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to delete a pull-request on BitBucket?

Tags:

bitbucket

I cannot find an option to delete a PR on BitBucket. Am I overlooking something or it's really not possible?

like image 730
user1941537 Avatar asked Sep 22 '20 08:09

user1941537


People also ask

Can a pull request be deleted?

Under your repository name, click Pull requests. Click Closed to see a list of closed pull requests. In the list of pull requests, click the pull request that's associated with the branch that you want to delete. Near the bottom of the pull request, click Delete branch.

Does closing a pull request delete it?

There is no way you can delete a pull request yourself -- you and the repo owner (and all users with push access to it) can close it, but it will remain in the log. This is part of the philosophy of not denying/hiding what happened during development.

Can you edit pull request?

To edit a pull request, select the pull request on the Pull requests page, go to its detail page and click "Edit". The target branch (the base branch) and the pull request branch (the branch that will be merged) cannot be changed.


2 Answers

You can decline a pull request which has the same result -- stopping / removing the PR.

like image 162
Sara Avatar answered Oct 06 '22 05:10

Sara


As per the link jonrsharpe mentioned, to the right of the merge button there are 3 dots. Under that menu you should have a delete option if you have permission to delete.

This is available only for BitBucket Server, not on BitBucket.org. In BitBucket.org there is no option to delete the PR.

BitBucketDeletePullRequst

like image 44
Zeppyk Avatar answered Oct 06 '22 07:10

Zeppyk