capabilities.work

Sub Account Cleanup

A 3-step recipe with Logz.io. We can help you get access.

Recipe · 3 steps

Sub Account Cleanup

with Logz.io

Confirm a sub account exists and then delete it.

  1. Retrieve settings for the main account and all of its sub accounts so the target account can be confirmed to exist.
  2. Read the targeted sub account by id to confirm it exists before deleting it.
  3. Delete the confirmed sub account by its id.
What you'll need to have ready
  • apiToken: Logz.io main-account API token sent in the X-API-TOKEN header.
  • accountId: ID of the sub account to delete.
For your developer

Arazzo workflow logz-io:cleanup-subaccount, 3 operations: getAll → get → deleteTimeBasedAccount. Specs on APIs.io.