---
title: "Datapoints.DeleteIDs"
description: "Delete data points from a collection."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

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

# Datapoints.DeleteIDs

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```go
func (datapointClient) DeleteIDs(
    ctx context.Context,
    collectionID uuid.UUID,
    datapointIDs []uuid.UUID,
) (int64, error)
```

Delete data points from a collection.

## Parameters

**collectionID**

type: uuid.UUID

The id of the collection
**datapointIDs**

type: []uuid.UUID

The ids of the data points to delete from the collection

## Returns

The number of data points that were deleted.

<h2 id="request-example">Usage example</h2>

```go
numDeleted, err := client.Datapoints.DeleteIDs(ctx,
    collectionID,
    []uuid.UUID{
      uuid.MustParse("0195c87a-49f6-5ffa-e3cb-92215d057ea6"),
      uuid.MustParse("0195c87b-bd0e-3998-05cf-af6538f34957"),
    },
)
```

Source: https://tilebox.com/docs/api-reference/go/datasets/Datapoints.DeleteIDs/index.mdx
