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

# Delete Purchase Orders

Use this endpoint to delete one or more purchase orders from your PIC inventory.

<Warning>
  This action is destructive and cannot be undone.
</Warning>

### Request body params

| Name  | Type            | Description                                               |
| :---- | :-------------- | :-------------------------------------------------------- |
| `ids` | `Array<string>` | **\[REQUIRED]** An array of purchase order IDs to delete. |

### Implementation Details

* **Bulk operation**: You can delete multiple purchase orders in a single request.
* **Response format**: Returns `{ successIds: string[], failureIds: string[] }` indicating which deletions succeeded and which failed.


## OpenAPI

````yaml api-reference/openapi/french-eco.json POST /purchase-orders/delete
openapi: 3.0.0
info:
  title: pic-api
  version: 1.0.0
servers:
  - url: https://api-v2.production.higg.org/pic-api/v1
    description: Production
  - url: https://api-v2.demo.higg.org/pic-api/v1
    description: Demo
security:
  - sec0: []
    sec1: []
paths:
  /purchase-orders/delete:
    post:
      summary: Remove Purchase Orders
      operationId: RemovePurchaseOrders
      requestBody:
        $ref: '#/components/requestBodies/CorpReportApiItems'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CorpRepApiImportResponse'
components:
  requestBodies:
    CorpReportApiItems:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CorpReportApiItems'
      required: true
  schemas:
    CorpRepApiImportResponse:
      properties:
        successIds:
          items:
            type: string
          type: array
        failureIds:
          items:
            type: string
          type: array
      required:
        - failureIds
        - successIds
      type: object
      additionalProperties: false
    CorpReportApiItems:
      description: API id based requests (import/remove/sync)
      properties:
        ids:
          items:
            type: string
          type: array
      required:
        - ids
      type: object
      additionalProperties: false
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: x-api-key
    sec1:
      type: apiKey
      in: header
      name: x-developer-request-token

````