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

# Client.Datapoints.Delete

```go theme={"system"}
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

<ParamField path="collectionID" type="uuid.UUID">
  The id of the collection
</ParamField>

<ParamField path="datapoints" type="[]proto.Message">
  The datapoints to delete from the collection
</ParamField>

## Returns

The number of data points that were deleted.

<RequestExample>
  ```go Go theme={"system"}
  var datapoints []*v1.Sentinel1Sar
  // assuming the slice is filled with datapoints

  numDeleted, err := client.Datapoints.Delete(ctx,
      collectionID,
      datapoints,
  )
  ```
</RequestExample>
