Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Forwarding → Delete A Forwarding

AI-generated

Summary

Delete a forwarding rule for a specified mailbox

Inputs

  • Authentication — Authentication method (OAuth2 or API Key) to use for the request
  • path_mail_hosting_id (required) — The ID of the mail hosting containing the mailbox
  • path_mailbox_name (required) — The username (part before @) of the email address whose forwarding rule is to be deleted
  • path_redirect_addresses (required) — The redirect address(es) that were configured for forwarding (comma-separated list)
  • returnFullResponse — When true, the full response body is returned; otherwise only a success indicator is provided

Output shape

success/failure only

The operation returns an empty response body on success; errors are signaled via HTTP status codes.

Examples

Example 1: Delete forwarding for alice@example.com on hosting ID 42

Authentication: OAuth2; path_mail_hosting_id: 42; path_mailbox_name: alice; path_redirect_addresses: forward@example.com; returnFullResponse: false

Example 2: Remove all forwarding addresses for bob@example.org using API Key

Authentication: API Key; path_mail_hosting_id: 7; path_mailbox_name: bob; path_redirect_addresses: ; returnFullResponse: true

Example 3: Toggle verbose response when deleting forwarding for carol@example.net

Authentication: OAuth2; path_mail_hosting_id: 12; path_mailbox_name: carol; path_redirect_addresses: ; returnFullResponse: true

Links

Discussion