# remove_datapoints

> **Function** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/_v2_operations/remove_datapoints)

Deletes data points from a Vertex AI Vector Search 2.0 Collection.

## Signature

```python
remove_datapoints(
    project_id: str,
    region: str,
    collection: str,
    datapoint_ids: List[str],
    credentials: Optional[Credentials] = None,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `project_id` | `str` | Yes | The GCP project ID. |
| `region` | `str` | Yes | The GCP region. |
| `collection` | `str` | Yes | The resource name of the collection. |
| `datapoint_ids` | `List[str]` | Yes | List of datapoint IDs to delete. |
| `credentials` | `Optional[Credentials]` | No | Optional credentials to use. (default: `None`) |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/vertexai/langchain_google_vertexai/vectorstores/_v2_operations.py#L235)