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

# Delete a PO line

> Removes a line from a DRAFT purchase order. Returns HTTP 204.

<ParamField header="x-api-key" type="string" required>
  API key with `inventory:write` scope.
</ParamField>

<ParamField path="vendorId" type="string" required>
  Vendor UUID.
</ParamField>

<ParamField path="orderId" type="string" required>
  Purchase order UUID. Must be in `DRAFT` status.
</ParamField>

<ParamField path="lineId" type="string" required>
  Purchase order line UUID to remove.
</ParamField>

<ResponseExample>
  ```json 204 theme={null}
  ```

  ```json 422 theme={null}
  {
    "error": {
      "kind": "purchase_order_not_draft",
      "message": "Lines can only be removed from DRAFT orders"
    }
  }
  ```
</ResponseExample>
