# Datapoints.DeleteIDs

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

Delete data points from a collection.

## Parameters

**collectionID**

`uuid.UUID`

The id of the collection

**datapointIDs**

`[]uuid.UUID`

The ids of the data points to delete from the collection

## Returns

The number of data points that were deleted.

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