📙Delete By Upload Id
Prerequisites
Requires a user auth token. See the API Auth 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.
import mindplug from "@/src/mindplugAPI"; // base instance
mindplug.post("/data/deleteupload", {
"db": "walmart",
"collection": "OfficeSupplies",
"uploadId": "ea209649-8f38-40e0-9b84-0cdb1809db6c"
});
Once the data is deleted, there is no way for Mindplug to restore the deleted data.
Sample Response
{
success: "true"
}
Last updated