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

# Delete

Removes vectors from the index by their IDs. This operation permanently deletes the specified vectors and their associated data.

```python theme={null}
index.delete(ids)
```

### Parameters

| Parameter | Type        | Default | Description                  |
| --------- | ----------- | ------- | ---------------------------- |
| `ids`     | `List[str]` | -       | List of vector IDs to delete |

### Returns

`None`

### Exceptions

<AccordionGroup>
  <Accordion title="Error">
    * Throws if the API request fails due to network connectivity issues.
    * Throws if authentication fails (invalid API key).
    * Throws if the encryption key is invalid for the specified index.
    * Throws if there are internal server errors preventing the deletion.
  </Accordion>

  <Accordion title="Validation Errors">
    * Throws if the `ids` parameter is null, undefined, or empty.
    * Returns `422` from the server if `ids` is not a list of strings.
  </Accordion>
</AccordionGroup>

### Example Usage

```python theme={null}
# Delete vectors by ID
vector_ids = ['doc1', 'doc2', 'doc3']
index.delete(vector_ids)
```
