> For the complete documentation index, see [llms.txt](https://docs.mindplug.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindplug.io/api/delete-collection.md).

# Delete Collection

### Prerequisites

Requires a user auth token. See the [API Auth](/api/api-setup-text.md) section.

### Deleting Collection

Deletes all embedding vectors from the collection. The endpoins requires:

1. Database name: `db`
2. A collection name: `collection`

{% code overflow="wrap" lineNumbers="true" %}

```javascript
import mindplug from "@/src/mindplugAPI"; // base instance

mindplug.post("/collection/delete", {
    db: "walmart",
    collection: "office supplies"
});
```

{% endcode %}

### Sample Response

```json
{
    "data": {
        "success": true
    }
}
```
