@pinecone-database/pinecone
Version:
This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.
15 lines • 549 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteCollection = void 0;
const errors_1 = require("../errors");
const deleteCollection = (api) => {
return async (collectionName) => {
if (!collectionName) {
throw new errors_1.PineconeArgumentError('You must pass a non-empty string for `collectionName`');
}
await api.deleteCollection({ collectionName });
return;
};
};
exports.deleteCollection = deleteCollection;
//# sourceMappingURL=deleteCollection.js.map
;