Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Service Mail > Redirections > Target → Remove A Target

AI-generated

Summary

Remove a specified mail redirection target.

Inputs

  • authentication — Method used to authenticate with Infomaniak API; either OAuth2 or API Key.
  • path_mail_hosting_id (required) — Identifier of the mail hosting account (mail hosting ID) to which the redirection belongs; required.
  • path_redirection_id (required) — Identifier of the redirection to remove; required.
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator.

Output shape

no body — success/failure only

Returns no response body; the operation succeeds or throws an error.

Examples

Example 1: Delete a redirection using OAuth2 authentication

authentication: oauth2; path_mail_hosting_id: 123; path_redirection_id: 456; returnFullResponse: false

Example 2: Remove a target with API Key and request full response

authentication: apiKey; path_mail_hosting_id: 789; path_redirection_id: 101; returnFullResponse: true

Example 3: Delete redirection without specifying return flag (default behavior)

authentication: oauth2; path_mail_hosting_id: 112; path_redirection_id: 223

Links

Discussion