---
title: "Datapoints.Delete"
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.Delete

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

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

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

```go
func (datapointClient) Delete(
    ctx context.Context,
    collectionID uuid.UUID,
    datapoints any,
) (int64, error)
```

Delete data points from a collection.

Data points are identified and deleted by their ids.

## Parameters

**collectionID**

type: uuid.UUID

The id of the collection
**datapoints**

type: []proto.Message

The datapoints to delete from the collection

## Returns

The number of data points that were deleted.

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

```go
var datapoints []*v1.Sentinel1Sar
// assuming the slice is filled with datapoints

numDeleted, err := client.Datapoints.Delete(ctx,
    collectionID,
    datapoints,
)
```

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