# Delete By Upload Id

### Prerequisites

Requires a user auth token. See the [API Auth](https://docs.mindplug.io/api/api-setup-text) section.

### Deleting Data

Deletes all vectors associated with a single upload id. This useful when you store data at different points in time. If you want to delete all contents of a website, or a pdf and there are multiple sources, this is the best method.

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

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

mindplug.post("/data/deleteupload", {
    "db": "walmart",
    "collection": "OfficeSupplies",
    "uploadId": "ea209649-8f38-40e0-9b84-0cdb1809db6c"
});
```

{% endcode %}

*Once the data is deleted, there is no way for Mindplug to restore the deleted data.*

### Sample Response

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