# Datapoints.Delete

```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**

`uuid.UUID`

The id of the collection

**datapoints**

`[]proto.Message`

The datapoints to delete from the collection

## Returns

The number of data points that were deleted.

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

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