Delete email templates

DELETE /api/email-templates

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

Query parameters

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

    Minimum length is 1, maximum length is 16.

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

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

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.

  • Bad Request

  • Unauthorized

  • Forbidden

  • 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
}