deleteSubAccountLocation calls the agency delete endpoint, defaulting to also removing the associated telephony account. A 404 is treated as success so teardown can be re-run safely.
Also called: delete sub-account · cancel signup · clean up after refund
- 1Signup is refunded, archived or deleted.
- 2The location id is passed to deleteSubAccountLocation.
- 3The delete runs with deleteTwilioAccount defaulting to true.
- 4404 (already gone) returns ok so callers can treat teardown as idempotent.
The header states the driver — 'used when a signup is refunded/archived/deleted so it doesn't bloat the agency' — and the idempotency choice: 'Returns ok even if the location is already gone (404) so callers can treat teardown as idempotent.'
- Abandoned signups left orphaned CRM sub-accounts behind.
- Re-running cleanup used to error on an already-deleted location.
See it on your own jobs
Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.
or keep browsing features →