@mbanq/core-sdk-js / commands / DeleteAccount
Function: DeleteAccount()
DeleteAccount(
accountId):Command<{accountId:number; }, {clientId:number;id:string;resourceId:number;resourceIdentifier?:string; }>
Defined in: src/commands/rest/account.ts:113
Deletes a savings account from the system.
Parameters
accountId
number
The ID of the account to delete
Returns
Command<{ accountId: number; }, { clientId: number; id: string; resourceId: number; resourceIdentifier?: string; }>
A Command that when executed returns the deletion confirmation
Example
typescript
const deleteCmd = DeleteAccount(123);
const result = await deleteCmd.execute(config);