fluentcrm_delete_campaign
Remove a marketing campaign from FluentCRM by specifying its ID to manage your email automation workflows.
Instructions
Usuwa kampanię
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | ID kampanii |
Implementation Reference
- src/fluentcrm-mcp-server.ts:732-742 (registration)Registration of the 'fluentcrm_delete_campaign' tool in the MCP server's tool list, including input schema that requires a numeric 'campaignId'.{ name: 'fluentcrm_delete_campaign', description: 'Usuwa kampanię', inputSchema: { type: 'object', properties: { campaignId: { type: 'number', description: 'ID kampanii' }, }, required: ['campaignId'], }, },
- src/fluentcrm-mcp-server.ts:985-986 (handler)MCP tool handler switch case that extracts campaignId from arguments and delegates execution to FluentCRMClient.deleteCampaign method.case 'fluentcrm_delete_campaign': return { content: [{ type: 'text', text: JSON.stringify(await client.deleteCampaign((args as any)?.campaignId), null, 2) }] };
- src/fluentcrm-mcp-server.ts:223-226 (helper)Core implementation in FluentCRMClient class: sends DELETE request to FluentCRM API endpoint `/campaigns/${campaignId}` and returns the response data.async deleteCampaign(campaignId: number) { const response = await this.apiClient.delete(`/campaigns/${campaignId}`); return response.data; }