mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
delete dataset
This commit is contained in:
parent
b04c35b450
commit
82fc24df1c
|
|
@ -99,10 +99,9 @@ export async function delDatasetRelevantData({
|
|||
await MongoDatasetDataText.deleteMany({
|
||||
teamId,
|
||||
datasetId: { $in: datasetIds }
|
||||
});
|
||||
}).maxTimeMS(600000);
|
||||
//delete dataset_datas
|
||||
await MongoDatasetData.deleteMany({ teamId, datasetId: { $in: datasetIds } });
|
||||
// Delete collection image and file
|
||||
await MongoDatasetData.deleteMany({ teamId, datasetId: { $in: datasetIds } }).maxTimeMS(600000);
|
||||
await delCollectionRelatedSource({ collections });
|
||||
// Delete vector data
|
||||
await deleteDatasetDataVector({ teamId, datasetIds });
|
||||
|
|
|
|||
Loading…
Reference in New Issue