Deleting a Pull Request

You can permanently remove unwanted pull requests. Along with the PR, all its resources such as comments and file attachments are also deleted. After the PR is deleted, it can't be reverted.

    1. Open the navigation menu and click Developer Services. Under DevOps, click Projects.
    2. Select a project and from the left-side menu, click Code Repositories.
    3. Select a code repository and click the Pull Requests link on the left-side menu.
    4. Select a pull request that you want to delete.
    5. Under More actions, click the Delete link.
    6. Click Delete to permanently delete the pull request.
  • To retrieve a pull request, run the get command:

    oci devops pull-request get --pull-request-id

    To delete a pull request, run the delete command:

    oci devops pull-request delete --pull-request-id
  • To delete a pull request, use the DeletePullRequest operation.