202Successful Response
Schema: app__core__success__MessageResponse
successbooleanmessagestringcodestring
/api/v1/businesses/{business_id}Delete a business and all associated resources (async via Temporal).
Safety: requires a JSON body with confirm_name matching the
business's name (case-insensitive, trimmed) and confirm_password
holding the caller's own account password, which is verified against
Clerk. Guards against single-click muscle-memory deletes and against an
unattended session — this endpoint wipes ~80 related tables via a
Temporal workflow and is irreversible.
Cleanup Process:
Notes:
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredSchema: BusinessDeleteRequest
confirm_passwordstring · passwordrequiredThe calling user's own account password, retyped at the moment of the request. Verified against Clerk before anything is deleted; a wrong password rejects the request with 403 and changes nothing.
business_idstringconfirm_namestringrequiredExact business name as a typed confirmation. Must match the persisted business name (case-insensitive, trimmed). Required.
preserve_teal_instancebooleanpreserve_dz_usersbooleanSchema: app__core__success__MessageResponse
successbooleanmessagestringcodestringSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject