fc_bulk_delete_posts
Remove multiple posts simultaneously from your FluentCommunity platform by specifying post IDs to manage content efficiently.
Instructions
Delete multiple posts at once
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_ids | Yes | Array of post IDs to delete |
Implementation Reference
- src/tools/fluent-community.ts:555-562 (handler)The core handler function for the fc_bulk_delete_posts tool. It sends a POST request to the WordPress REST API endpoint '/fc-manager/v1/posts/bulk-delete' with the array of post_ids from the input args, and returns the response or an error message.fc_bulk_delete_posts: async (args: any) => { try { const response = await makeWordPressRequest('POST', 'fc-manager/v1/posts/bulk-delete', { post_ids: args.post_ids }); return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } }; } catch (error: any) { return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } }; } },
- Zod schema defining the input validation for the tool: an object containing 'post_ids' as an array of numbers.const bulkDeletePostsSchema = z.object({ post_ids: z.array(z.number()).describe('Array of post IDs to delete') });
- src/tools/fluent-community.ts:277-281 (registration)Tool registration entry in the fluentCommunityTools array, specifying the tool's name, description, and input schema.{ name: 'fc_bulk_delete_posts', description: 'Delete multiple FluentCommunity posts at once', inputSchema: { type: 'object', properties: bulkDeletePostsSchema.shape } },
- src/tools/index.ts:29-29 (registration)Top-level aggregation of all tools in src/tools/index.ts, spreading fluentCommunityTools which includes fc_bulk_delete_posts....fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members)