fc_delete_post
Remove unwanted or outdated posts from your FluentCommunity platform by specifying the post ID. This tool helps maintain content quality and manage community discussions effectively.
Instructions
Delete a post from FluentCommunity
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | The ID of the post to delete |
Implementation Reference
- src/tools/fluent-community.ts:348-355 (handler)The handler function for the fc_delete_post tool that executes a DELETE request to the WordPress API endpoint to delete the specified post.fc_delete_post: async (args: any) => { try { const response = await makeWordPressRequest('DELETE', `fc-manager/v1/posts/${args.post_id}`); 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}` }] } }; } },
- src/tools/fluent-community.ts:44-46 (schema)Zod input schema validation for the fc_delete_post tool, requiring a post_id.const deletePostSchema = z.object({ post_id: z.number().describe('The ID of the post to delete') });
- src/tools/fluent-community.ts:187-191 (registration)Tool registration entry in the fluentCommunityTools array defining name, description, and input schema for fc_delete_post.{ name: 'fc_delete_post', description: 'Delete a FluentCommunity post', inputSchema: { type: 'object', properties: deletePostSchema.shape } },