delete_template
Remove a dynamic email template from SendGrid by specifying its template ID to manage your email marketing content.
Instructions
Delete a dynamic template from SendGrid
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | ID of the template to delete |
Implementation Reference
- src/services/sendgrid.ts:223-228 (handler)Core implementation of the delete_template tool: sends a DELETE request to the SendGrid Templates API endpoint to delete the specified template.async deleteTemplate(templateId: string): Promise<void> { await this.client.request({ method: 'DELETE', url: `/v3/templates/${templateId}` }); }
- src/tools/index.ts:170-183 (registration)Tool registration/definition including name, description, and input schema for delete_template.{ name: 'delete_template', description: 'Delete a dynamic template from SendGrid', inputSchema: { type: 'object', properties: { template_id: { type: 'string', description: 'ID of the template to delete' } }, required: ['template_id'] } },
- src/tools/index.ts:419-421 (handler)Dispatcher case in handleToolCall function that invokes the deleteTemplate service method and formats the response.case 'delete_template': await service.deleteTemplate(args.template_id); return { content: [{ type: 'text', text: `Template ${args.template_id} deleted successfully` }] };