> ## 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 Materials

Use this endpoint to delete one or more custom materials from your PIC material library.

<Warning>
  This action is destructive and cannot be undone. Products that reference deleted materials will no longer have valid material data.
</Warning>

### Request body params

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

### Implementation Details

* **Bulk operation**: You can delete multiple materials 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 DELETE /material-library/remove-material
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:
  /material-library/remove-material:
    delete:
      summary: Remove Materials
      operationId: RemoveMaterials
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CorpRepApiSelectedItemsRequest'
        required: true
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CorpRepApiMaterialLibraryResponse'
components:
  schemas:
    CorpRepApiSelectedItemsRequest:
      properties:
        ids:
          items:
            type: string
          type: array
      required:
        - ids
      type: object
      additionalProperties: false
    CorpRepApiMaterialLibraryResponse:
      properties:
        successIds:
          items:
            type: string
          type: array
        failureIds:
          items:
            type: string
          type: array
      required:
        - failureIds
        - successIds
      type: object
      additionalProperties: false
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: x-api-key
    sec1:
      type: apiKey
      in: header
      name: x-developer-request-token

````