Modulify

Remove an email domain from a site

remove_site_email_domain

Removes an email domain from a site, so the site stops sending from it and mail sent to it is no longer forwarded.

When the site sends from the domain, sending goes back to the built-in address at once, and mail sent to the domain is no longer forwarded, even while its MX record still points here. Its DNS records can be deleted at the DNS host afterwards, and adding the domain again later starts its verification over with a new ownership record.

The tool tells the client to always confirm with you first. It needs the Manage domains permission and works on every plan, a paused domain included. See Remove a domain.

Inputs

Input Type Required Description
projectId string Yes The site id.
domainId string Yes The id of the email domain, from emailDomains.items in get_site_email_settings.