@goatlab/typesense
Version:
Modern TypeScript wrapper for Typesense search engine API
11 lines • 436 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearCollection = clearCollection;
async function clearCollection(ctx, options) {
const collectionName = options?.collection || ctx.fqcn();
return await ctx.httpClient.request(`/collections/${collectionName}/documents`, {
method: 'DELETE',
searchParams: { filter_by: '*' },
});
}
//# sourceMappingURL=clearCollection.js.map