Infomaniak Mail icon

Infomaniak Mail

Interact with Infomaniak Mail API

Actions118

Mailboxes > Accesses > Devices → Delete Device Access For A User

AI-generated

Summary

Delete a device access for a user

Inputs

  • authentication — Authentication method to use – either OAuth2 or API Key.
  • path_service_mail (required) — The unique identifier (ID) of the mail hosting to request.
  • path_mailbox_name (required) — The username (that is the part before the @) of the email address you want to request.
  • path_user_id (required) — The unique identifier (ID) of the user to request.
  • returnFullResponse — Control whether the full API response is returned.

Output shape

a boolean indicating success/failure (or full response when returnFullResponse is true)

If returnFullResponse is true, the full API response is returned; otherwise only a success indicator is emitted.

Examples

Example 1: Delete a device access using OAuth2 for user ID 123 and mailbox 'john.doe' on service mail 0

authentication: oauth2; path_service_mail: 0; path_mailbox_name: john.doe; path_user_id: 123; returnFullResponse: false

Example 2: Delete a device access using API key for user ID 456 and mailbox 'jane.smith' on service mail 2

authentication: apiKey; path_service_mail: 2; path_mailbox_name: jane.smith; path_user_id: 456; returnFullResponse: true

Example 3: Delete a device access with minimal parameters

authentication: oauth2; path_service_mail: 0; path_mailbox_name: user; path_user_id: 0; returnFullResponse: false

Links

Discussion