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

# delete

Deletes documents from the vector store or deletes the entire index.

```python theme={null}
delete(
    ids: Optional[List[str]] = None,
    delete_index: bool = False
) -> bool
```

### Parameters

| Parameter      | Type                  | Description                                                            |
| -------------- | --------------------- | ---------------------------------------------------------------------- |
| `ids`          | `Optional[List[str]]` | *(Optional)* List of document IDs to delete                            |
| `delete_index` | `bool`                | If True, deletes the entire index regardless of `ids` (default: False) |

### Returns

`bool`: True if deletion was successful, False otherwise

### Example Usage

```python theme={null}
# Delete specific documents
doc_ids = ["doc1", "doc2", "doc3"]
success = store.delete(ids=doc_ids)
if success:
    print("Documents deleted successfully")

# Delete the entire index
success = store.delete(delete_index=True)
if success:
    print("Index deleted successfully")
```
