> ## 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 Dataset Item by Reference ID

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.delete_item)**
>
> ```
> Dataset.delete_item(reference_id: str) -> dict
> ```

Deletes `DatasetItem` by its `reference_id` (provided by the user during upload).


## OpenAPI

````yaml openapi/nucleus.json DELETE /dataset/{dataset_id}/refloc/{reference_id}
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /dataset/{dataset_id}/refloc/{reference_id}:
    delete:
      summary: Delete Dataset Item by Reference ID
      operationId: delete-dataset-item-by-reference-id
      parameters:
        - name: dataset_id
          in: path
          description: The Scale-generated ID of the Dataset.
          schema:
            type: string
          required: true
        - name: reference_id
          in: path
          description: The user-defined ID of the DatasetItem.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````