> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pullrule.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a pull request

> Permanently deletes a pull request object. This action cannot be undone.
This can be useful to resync the pull request state from the source repository.

> Note: Pull requests are automatically resynced when they are updated and results in the pull request being available
> again in the application.



## OpenAPI

````yaml api-reference/api.json delete /2025-04/pull-requests/{pullRequest}
openapi: 3.1.0
info:
  title: PullRule
  version: 0.0.1
servers:
  - url: https://pullrule.com/api
    description: Production
security:
  - http: []
tags:
  - name: Account
  - name: Members
  - name: Pull requests
  - name: Rules
  - name: Users
paths:
  /2025-04/pull-requests/{pullRequest}:
    delete:
      tags:
        - Pull requests
      summary: Delete a pull request
      description: >-
        Permanently deletes a pull request object. This action cannot be undone.

        This can be useful to resync the pull request state from the source
        repository.


        > Note: Pull requests are automatically resynced when they are updated
        and results in the pull request being available

        > again in the application.
      operationId: v202504.pull-requests.destroy
      parameters:
        - name: pullRequest
          in: path
          required: true
          description: The unique identifier of the pull request.
          schema:
            type: string
      responses:
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '410':
          description: '`ObjectDeleted`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObjectDeleted'
components:
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  schemas:
    ObjectDeleted:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the object.
        object:
          type: string
          description: The name of the object that was deleted.
        deleted:
          type: boolean
          description: Indicates whether the object was successfully deleted.
      required:
        - id
        - object
        - deleted
      title: ObjectDeleted
  securitySchemes:
    http:
      type: http
      scheme: bearer

````