For the agency team
Data, export, erase
The agency keeps its own data, apart from the rest of the platform: three D1 databases (agency-db for clients, brands, requests, deliverables and reviews; agency-billing for plans and the ledger; agency-events for the timeline, the outbox and performance rows), a KV cache of read-fast copies and an R2 bucket for images, pages and files, all under the client's own prefix.
Export
Lowest role: admin. "Download client data" on the client page: one JSON file with the brand, claims, requests, client-visible deliverables, decisions, timeline and billing lines. A ZIP with the files is offered too. The client's approver downloads the same from Agency Studio. Every export is recorded.
Erase
Lowest role: owner. Read the residue first, then erase with the client's slug as confirmation. It cancels the Stripe subscription, deletes the client's connections, saved workflows and brand card, then every row of the client in the three databases, its files and cache keys. If a platform step refuses, nothing is deleted and you can repeat it. Stripe's own customer and invoices and the platform's run records are kept.
Lead erase
Lowest role: owner. A lead that never converted is erased with its email as confirmation.
Re-home
Lowest role: owner. Moves the agency's workflows, brand cards and bot onto another platform account, confirmed with the agency's slug. Repeat it if a step is refused.