Skip to main content
Version: 1.0.0

Delete document

info
  • client write secret is required for adding, modifying, or deleting data.

Overview

Path
DELETE/v1/collections/{collectionName}/documents/{docId}

  • Remove a Document from a Collection

Example


curl -X DELETE https://api.invector.co/v1/collections/{collectionName}/documents/{docId} \
     -H "Content-Type: application/json" \
     -H "Authorization: Basic base64({CLIENT_ID}:{CLIENT_WRITE_SECRET})"

Authorization


Authorization
BasicBasic authorization at Header. Base64 encoding required
client_id
string
client_secret
string
example

 curl -X DELETE https://api.invector.co/v1/collections/{collectionName}/documents/{docId} \
      -H "Content-Type: application/json" \
      -H "Authorization: Basic base64({CLIENT_ID}:{CLIENT_WRITE_SECRET})" \
     ...

Path Parameters


collectionName
string
docId
string

Response Body


200
objectInformation about deleted document
_id
stringUnique Document ID.
deleted
booleanWhether document is deleted or not.
example
{
  "_id": "12345",
  "deleted": true
}