Introduction
An email forwarder can be deleted via the API.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command.
uapi --username=cpusername Email delete_forwarder address='user@domain.tld' forwarder='foward@domain2.tld'
Please note that cpusername, user@domain.tld, and forward@domain2.tdl must be replaced with the cPanel username the forwarder is on, the forwarded email address, and the destination address, respectively.