Delete email templates

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://openapi.logto.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"Logto API references MCP server": {
  "url": "https://openapi.logto.io/mcp"
}
Close
DELETE /api/email-templates

Bulk delete email templates by their language tag and template type.

Query parameters

  • languageTag string

    The language tag of the email template, e.g., en or fr.

    Minimum length is 1, maximum length is 16.

  • templateType string

    The type of the email template, e.g. SignIn or ForgotPassword

    Values are SignIn, Register, ForgotPassword, OrganizationInvitation, Generic, UserPermissionValidation, BindNewIdentifier, MfaVerification, or BindMfa.

Responses

  • 200 application/json

    The email templates were deleted successfully.

    Hide response attribute Show response attribute object
    • rowCount number Required

      The number of email templates deleted.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 422

    No filter query parameters were provided. This bulk deletion API requires at least one filter query parameter.

DELETE /api/email-templates
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/email-templates' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "rowCount": 42.0
}