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

# Delete Custom Index

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.delete_custom_index)**
>
> ```
> Dataset.delete_custom_index(image: bool = True) -> dict
> ```

This endpoint deletes a custom index for a Dataset, provided that one exists.

Deleting an existing custom index is required to create a new custom index from a new set of image embeddings.

This exclusively applies to *custom* indices that were uploaded, as opposed to internal indices that were computed by Scale (either via the [index creation endpoint](https://api-reference.scale.com/docs/nucleus/api-reference/create-image-index.md) or [continuous indexing](https://api-reference.scale.com/docs/nucleus/api-reference/set-continuous-indexing.md)).


## OpenAPI

````yaml openapi/nucleus.json DELETE /indexing/{dataset_id}
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /indexing/{dataset_id}:
    delete:
      summary: Delete Custom Index
      operationId: delete-custom-index
      parameters:
        - name: dataset_id
          in: path
          description: The Scale-generated ID of the Dataset.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    dataset_id: ds_by0a81gnf6gfy9hw6rpg
                    job_id: job_c19xcf9mkws46gah00yg
                    message: >-
                      Deleting embeddings in the background.  You can use the
                      job_id field to asynchronously check the status of this
                      indexing job.
              schema:
                type: object
                properties:
                  dataset_id:
                    type: string
                    example: ds_by0a81gnf6gfy9hw6rpg
                  job_id:
                    type: string
                    example: job_c19xcf9mkws46gah00yg
                  message:
                    type: string
                    example: >-
                      Deleting embeddings in the background.  You can use the
                      job_id field to asynchronously check the status of this
                      indexing job.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````