Cakemail icon

Cakemail

Interact with Cakemail API

Account → Delete

AI-generated

Summary

Delete an account by specifying its ID, optionally within a multi-tenant context by providing an account ID for authentication.

Inputs

  • Target Account ID (required) — The ID of the account to delete.
  • Account ID — Optionally specify an account ID for multi-tenant operations. If omitted, the authenticated account is used.

Output shape

a JSON object confirming deletion success with properties 'success' (boolean) and 'accountId' (number) of the deleted account.

The operation returns a success confirmation after deleting the specified account. Providing 'Account ID' is optional and used only for multi-tenant authentication context.

Examples

Example 1: Delete an account by its ID using authenticated credentials

Set 'Target Account ID' to the account you want to delete. Leave 'Account ID' empty if using the authenticated account context.

Discussion