{"version":3,"file":"collections.cjs","names":[],"sources":["../../../../src/rest/commands/delete/collections.ts"],"sourcesContent":["import type { DirectusCollection } from '../../../schema/collection.js';\nimport type { RestCommand } from '../../types.js';\n\n/**\n * Delete a collection.\n * @param collection\n * @returns\n */\nexport const deleteCollection =\n\t<Schema>(collection: DirectusCollection<Schema>['collection']): RestCommand<void, Schema> =>\n\t() => ({\n\t\tpath: `/collections/${collection}`,\n\t\tmethod: 'DELETE',\n\t});\n"],"mappings":"AAQA,MAAa,EACH,QACF,CACN,KAAM,gBAAgB,IACtB,OAAQ,SACR"}