Xóa một tài liệu trong Cửa hàng Vector
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.
delete
/vector-stores/{vector-store-id}/documents/{document-id}/204
Document deleted successfully.
No content
Ví dụ Yêu cầu
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("Tài liệu đã được xóa thành công");
} else {
console.error("Xóa tài liệu không thành công");
}
};
deleteDocument('vs_abc123', 1234);Tham số Đường dẫn
Tham số
Kiểu
Mô tả
Phản hồi
Xác thực
Phản hồi lỗi
Mã trạng thái
Mô tả
PreviousLấy thông tin của cửa hàng vectorNextTìm kiếm tài liệu Cửa hàng Vector theo sự tương đồng ngữ nghĩa
Last updated