Skip to main content

Delete Knowledge Base Collection

Delete the vector collection of the current RAG knowledge base along with all vector data in it. This operation will affect subsequent retrieval results, please call with caution.

Try It

DELETE/database/collectionshttps://api-platform.ope.ai

Authentication

Uses Bearer Token authentication.

  • Header: Authorization: Bearer <token>
  • Example: Authorization: Bearer sk-xxxxxx

Request Body (application/json)

The request body can just be an empty JSON object.

{}

Request Examples

curl -X DELETE "https://api-platform.ope.ai/database/collections" \
-H "Authorization: Bearer $OPEAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'

Response Example

{
"success": true
}

Error Responses

Status CodeScenarioDescription
401Authentication failedAPI Key is missing, invalid, or has insufficient permissions
422Validation failedRequest format is incorrect
500Collection deletion failedVector database connection failed or collection deletion failed