ベクターストア内の文書を削除
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
例リクエスト
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