rowboat/apps/rowboat/app/scripts/delete_qdrant.ts
2025-05-09 09:38:08 +05:30

11 lines
No EOL
383 B
TypeScript

import '../lib/loadenv';
import { qdrantClient } from '../lib/qdrant';
(async () => {
try {
const result = await qdrantClient.deleteCollection('embeddings');
console.log(`Delete qdrant collection 'embeddings' completed with result: ${result}`);
} catch (error) {
console.error(`Unable to delete qdrant collection 'embeddings': ${error}`);
}
})();