UNPKG

@goatlab/typesense

Version:

Modern TypeScript wrapper for Typesense search engine API

11 lines 435 B
"use strict"; 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