在向量存储中删除文档
delete
Delete a specific document from a vector store.
Path parameters
vector-store-idstringRequired
The ID of the vector store.
document-idintegerRequired
The ID of the document.
Header parameters
x-api-keystringRequired
The API key for authentication.
Responses
204
Document deleted successfully.
No content
delete
/vector-stores/{vector-store-id}/documents/{document-id}/204
Document deleted successfully.
No content
示例请求
curl -X DELETE \
https://api.rememberizer.ai/api/v1/vector-stores/vs_abc123/documents/1234/ \
-H "x-api-key: YOUR_API_KEY"const deleteDocument = async (vectorStoreId, documentId) => {
const response = await fetch(`https://api.rememberizer.ai/api/v1/vector-stores/${vectorStoreId}/documents/${documentId}/`, {
method: 'DELETE',
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
if (response.status === 204) {
console.log("文档删除成功");
} else {
console.error("删除文档失败");
}
};
deleteDocument('vs_abc123', 1234);路径参数
参数
类型
描述
响应
认证
错误响应
状态码
描述
Last updated