Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Users → Remove A User

AI-generated

Summary

Remove a mailbox user from the specified Infomaniak mail hosting.

Inputs

  • authentication (required) — Authentication method: OAuth2 or API Key.
  • path_mail_hosting_id (required) — ID of the mail hosting containing the mailbox.
  • path_mailbox_name (required) — Username (part before '@') of the email address to delete.
  • path_user_id (required) — Unique identifier of the user to remove.
  • returnFullResponse — If true, the full API response is returned; otherwise only a success indicator is emitted.

Output shape

a JSON status indicating success or failure (typically a 204 No Content response)

When returnFullResponse is true, the complete API response object is returned; otherwise the node emits a simple success signal.

Examples

Example 1: Delete user john.doe from hosting 123 using API key

authentication=apiKey, path_mail_hosting_id=123, path_mailbox_name=john.doe, path_user_id=456, returnFullResponse=false

Example 2: Remove user via OAuth2 and get full response

authentication=oauth2, path_mail_hosting_id=7, path_mailbox_name=admin, path_user_id=8, returnFullResponse=true

Example 3: Bulk removal with default auth method

authentication=oauth2, path_mail_hosting_id=2, path_mailbox_name=test, path_user_id=3, returnFullResponse=false

Links

Discussion