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

# Remove datapoints from a dataset

> Remove up to 1000 datapoints from a dataset in one request, recorded as one dataset version. The datapoints themselves are not deleted, only dereferenced from the dataset. An id the dataset does not hold is skipped, and a request that removes nothing records no version.



## OpenAPI

````yaml https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml post /v1/projects/{project_id}/datasets/{dataset_id}/datapoints/remove
openapi: 3.1.0
info:
  title: HoneyHive Data Plane API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 1.21.0
servers:
  - url: https://api.dp1.us.honeyhive.ai
security: []
tags:
  - name: Charts
    description: >
      Define and manage saved charts. Charts are visualizations that aggregate
      metrics over time with bucketing, filters, and groupings.
  - name: Configurations
    description: >
      Manage prompt configurations, i.e. model parameters, message templates,
      and response settings that can be versioned and deployed without code
      changes.
  - name: Data Plane Api Keys
    description: >
      Create fine-grained data plane API keys for a project from a provisioning
      flow, using an organization-rooted key that is permitted to create keys.
  - name: Datapoints
    description: >
      Manage individual records inside datasets, including batch creation and
      mapping to source events.
  - name: Datasets
    description: >
      Curate collections of datapoints used as test sets for evaluations and
      experiments.
  - name: Evaluators
    description: >
      Manage project-scoped evaluator definitions, immutable versions,
      publication and archival. Requires a fine-grained data plane API key.
  - name: Events
    description: >
      Read and write trace events. Events are the spans that capture every step
      of an AI application's execution.
  - name: Experiments
    description: >
      Run, retrieve, and compare evaluation runs to measure how prompt or
      configuration changes affect agent performance.
  - name: Ingestion Api Keys
    description: >
      Create ingestion API keys for a project from a provisioning flow, using an
      organization-rooted data plane key that is permitted to create keys. An
      ingestion key is the credential an application sends traces with.
  - name: Metric Versions
    description: >
      Snapshot, list, and deploy versions of a metric's definition so changes
      can be reviewed and rolled back without losing history.
  - name: Metrics
    description: >
      Define and run evaluators, i.e. automated quality checks that score traces
      against criteria like accuracy, safety, or correctness.
  - name: Queues
    description: >
      Manage annotation queues for human review of traces, turning expert
      feedback into labeled datasets.
  - name: Sessions
    description: >
      Group related trace events into sessions, the top-level container for a
      multi-step or multi-service AI interaction.
paths:
  /v1/projects/{project_id}/datasets/{dataset_id}/datapoints/remove:
    post:
      tags:
        - Datasets
      summary: Remove datapoints from a dataset
      description: >-
        Remove up to 1000 datapoints from a dataset in one request, recorded as
        one dataset version. The datapoints themselves are not deleted, only
        dereferenced from the dataset. An id the dataset does not hold is
        skipped, and a request that removes nothing records no version.
      operationId: removeDatapoints
      parameters:
        - in: path
          name: project_id
          required: true
          schema:
            type: string
          description: The unique identifier of the project that owns the dataset
        - in: path
          name: dataset_id
          required: true
          schema:
            type: string
          description: The unique identifier of the dataset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveDatapointsRequest'
      responses:
        '200':
          description: Datapoints removed from the dataset
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveDatapointsResponse'
        '400':
          description: >-
            The body lists no datapoint ids, more than 1000, or an unknown
            field.
        '404':
          description: No dataset with the given `dataset_id` exists in the project.
      security:
        - DataPlaneApiKey: []
components:
  schemas:
    RemoveDatapointsRequest:
      type: object
      properties:
        datapoint_ids:
          type: array
          items:
            type: string
            minLength: 1
          minItems: 1
          maxItems: 1000
          description: >-
            Datapoints to remove from the dataset, at most 1000. An id the
            dataset does not hold is skipped.
      required:
        - datapoint_ids
      additionalProperties: false
      description: >-
        Request body for POST
        /v1/projects/{project_id}/datasets/{dataset_id}/datapoints/remove
    RemoveDatapointsResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/RemoveDatapointsResponseData'
      required:
        - success
        - data
      additionalProperties: false
    RemoveDatapointsResponseData:
      type: object
      properties:
        removed:
          type: integer
          minimum: 0
          description: Datapoints removed. Excludes ids the dataset did not hold.
        dataset_version:
          type:
            - integer
            - 'null'
          minimum: 1
          description: >-
            The dataset version that records the removal. Null when the dataset
            held none of the datapoints.
      required:
        - removed
        - dataset_version
      additionalProperties: false
  securitySchemes:
    DataPlaneApiKey:
      type: http
      scheme: bearer
      description: >-
        A fine-grained data plane API key (values begin with `hh_fgdp_`). Rooted
        at an organization, workspace, or project, it carries the permissions
        chosen when it was created, and only the operations whose paths begin
        with `/v1/projects/{project_id}/` accept it. Create one in the HoneyHive
        app under the project's, workspace's, or organization's **Settings → API
        Keys**, on the **Data Plane** tab.

````

## Related topics

- [Remove a datapoint from a dataset](https://docs.honeyhive.ai/v2/api-reference-autogen/datasets/remove-a-datapoint-from-a-dataset.md)
- [Datasets](https://docs.honeyhive.ai/v2/cli-reference/ref/datasets.md)
- [Datasets Methods](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/datasets/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.