delete_collection_folder
Delete a folder from a Postman collection by providing its collection and folder IDs.
Instructions
Delete a folder from a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | Collection ID | |
| folder_id | Yes | Folder ID |
Implementation Reference
- The handler function that executes the delete_collection_folder logic. It calls this.client.delete() with the collection_id and folder_id from args, then returns the response wrapped via createResponse().
async deleteCollectionFolder(args: any): Promise<ToolCallResponse> { const response = await this.client.delete( `/collections/${args.collection_id}/folders/${args.folder_id}` ); return this.createResponse(response.data); } - The tool definition/schema for delete_collection_folder. Specifies the tool name, description, and inputSchema with required fields collection_id (string) and folder_id (string).
{ name: 'delete_collection_folder', description: 'Delete a folder from a collection', inputSchema: { type: 'object', properties: { collection_id: { type: 'string', description: 'Collection ID', }, folder_id: { type: 'string', description: 'Folder ID', }, }, required: ['collection_id', 'folder_id'], }, }, - src/tools/api/collections/index.ts:51-52 (registration)The switch-case registration that routes 'delete_collection_folder' to the deleteCollectionFolder handler method.
case 'delete_collection_folder': return await this.deleteCollectionFolder(args); - src/types/collection.ts:24-26 (helper)The TypeScript interface DeleteCollectionFolderArgs that defines the typed arguments (extends CollectionIdArg with folder_id: string).
export interface DeleteCollectionFolderArgs extends CollectionIdArg { folder_id: string; }