Skip to main content

Account Delete

Overview

Use these commands to intercept the account-delete command.

Input/OutputData Type
InputStdAccountDeleteInput
OutputStdAccountDeleteOutput

Example StdAccountDeleteInput

{
"identity": "john.doe",
"key": {
"simple": {
"id": "john.doe"
}
}
}

Example StdAccountDeleteOutput

{
}

Implementation

Before account-delete command

Use this logic to implement the command:

    .beforeStdAccountDelete(async (context: Context, input: StdAccountDeleteInput) => {
logger.info(`Running before account, for account ${input.identity}`)
return input
})

The input object can be mutated and returned, but the same data type must still be returned.

After account-delete command

Use this logic to implement the command:

    .afterStdAccountDelete(async (context: Context, output: StdAccountDeleteOutput) => {
logger.info(`Running after account delete`)
return output
})

The output object can be mutated and returned, but the same data type must still be returned.