MindPlug
  • 🧠Introduction
  • 🔹How does it work?
  • 🍁JavaScript SDK
  • 🌴API
    • 📗API Setup - Text
    • 📗API Setup - Audio
      • 🔉Performing Transcription
    • 📗API Setup - PDFs
    • 📙Storing Data
    • 📙Store PDF
    • 📙Store Web
    • 📙Query Data
      • 🧠Using Metadata Filters
    • 📙Query By Ids
    • 📙Query by collection
    • 📙Delete By Ids
    • 📙Delete By Upload Id
    • 📙Delete Collection
    • 📙Delete Project
    • 📙List Projects
    • 📙List Collections
    • 📙Search Web
    • Parse Webpage
Powered by GitBook
On this page
  • Prerequisites
  • Deleting Data
  • Sample Response
  1. API

Delete By Upload Id

Last updated 1 year ago

Prerequisites

Requires a user auth token. See the 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"
}
🌴
📙
API Auth