fc_delete_comment
Remove unwanted or inappropriate comments from your FluentCommunity platform by specifying the comment ID to maintain clean discussions and community standards.
Instructions
Delete a comment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | The ID of the comment to delete |
Implementation Reference
- src/tools/fluent-community.ts:452-459 (handler)The main handler function that executes the fc_delete_comment tool by sending a DELETE request to the WordPress fc-manager API endpoint for comments.fc_delete_comment: async (args: any) => { try { const response = await makeWordPressRequest('DELETE', `fc-manager/v1/comments/${args.comment_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}` }] } }; } },
- Zod schema defining the input validation for the fc_delete_comment tool, requiring a comment_id number.const deleteCommentSchema = z.object({ comment_id: z.number().describe('The ID of the comment to delete') });
- src/tools/fluent-community.ts:231-235 (registration)Registration of the fc_delete_comment tool in the fluentCommunityTools array, including name, description, and reference to input schema.{ name: 'fc_delete_comment', description: 'Delete a FluentCommunity comment', inputSchema: { type: 'object', properties: deleteCommentSchema.shape } },