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 Collection
  • Sample Response
  1. API

Delete Collection

Last updated 1 year ago

Prerequisites

Requires a user auth token. See the section.

Deleting Collection

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

  1. Database name: db

  2. A collection name: collection

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

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

Sample Response

{
    "data": {
        "success": true
    }
}
🌴
📙
API Auth