Timeline
| Stage | When | What happens |
|---|---|---|
| 1. Notice | Before the cut-off | Case logged, inventory, exports done |
| 2. Cut-off date | Contract end | Access revoked, apps deleted, DNS removed |
| 3. Soft delete | After step 4 | Org hidden, data intact, undo possible |
| 4. Hard delete | Soft delete + 30 days | Database rows deleted, BigQuery batched, no undo |
| 5. Backups gone | Hard delete + 30 days | Daily backups expire; shared files stay for now |
Roles
Trigger: the CSM confirms the non-renewal and logs a Salesforce case (subject "Termination Access", Product Area "ThreeKit Platform Administration", Environment "All"). Out of scope: reviving a former customer app for demo purposes.
| Role | Responsibility |
|---|---|
| CSM | Confirms the non-renewal, gives the cut-off date, collects the customer's export choices, confirms the closure |
| Support | Owns the case: inventory, exports, access termination, decommissioning, org deletion |
| Engineering / DevOps | Backup for cluster access and the deletion scripts; owns the deletion process documentation |
Only William, Zhongrui, Finn and Palash are set up to run the org deletion scripts today.
Intake and inventory
Before touching anything, write down everything the customer has, so the work can be checked or undone later.
- Confirm the request. The case must state the account, the confirmed non-renewal and the cut-off date (last contract day). If the cut-off falls on a weekend, agree with the CSM whether to execute the Friday before or the next business day.
- List the VC orgs. Open the super admin panels on Preview and FTS and search for the customer name. There may be more orgs than those listed in Salesforce (staging, sandbox, old brand names).
- List the custom apps and infrastructure. Read the customer's page in the Implementation documentation: repositories, Porter apps (threekit-customer-hosting), Heroku apps, custom domains, Postmark servers, data servers.
- Record the inventory in the case note with the table below, and share it with the CSM before the cut-off date.
Inventory
| Item | Environment / location | ID or URL | Action |
|---|---|---|---|
| Org: <name> | Preview | <orgId> | Revoke access, soft delete, hard delete |
| Org: <name> | FTS | <orgId> | Revoke access, soft delete, hard delete |
| Repo: <name> | GitHub | <url> | Revoke external access, archive |
| App: <name> | Porter / Heroku | <app> | Delete deployment |
| DNS: <record> | Cloudflare 3kit.com | <record> | Delete |
| Postmark server | Postmark | <server> | Decommission |
Data the customer wants to keep
The CSM asks the customer what they want to keep, and all exports are delivered before the cut-off date: once the orgs are soft deleted, nobody (Threekit included) can reach the data.
| Export | Format | Notes |
|---|---|---|
| 3D models | FBX or GLB | |
| Materials | VRSceneZip | |
| Item data | JSON | Catalog items, attributes, metadata |
| Custom app source code | Zipped copy of the repository | Only if the contract gives them ownership of the code |
If the customer wants nothing, write it in the case: "No export requested, confirmed by <CSM> on <date>".
Access termination
On the cut-off date, remove every way the customer can reach the platform, in every org from the inventory (Preview and FTS).
- Delete all API tokens.
- Revoke all memberships except active Threekit employees.
- Cancel pending invites.
- Stop the customer apps (Step 4 completes their removal).
Custom app and infrastructure decommissioning
Threekit does not keep a former customer's deployment, not even for demos: the MSA does not allow it. Every repository, deployment and domain from the inventory is shut down.
- Locate all the repositories linked to the customer.
- Revoke access for everyone who is not a Threekit employee.
- If the customer asked for the source code, deliver the zipped copy first (Step 2).
- Archive the repositories.
- Delete all the deployments (Porter apps on threekit-customer-hosting, legacy Heroku apps).
- Remove the DNS entries in Cloudflare (3kit.com zone, search by customer name) and any custom domain we manage.
- If the customer has a Postmark server, decommission it.
- Mark the customer as decommissioned on its Implementation documentation page, with the date and the case number.
VC org deletion
Each org from the inventory is soft deleted first, then hard deleted at least 30 days later. The gap is the only window to catch a mistake: hard deletion cannot be undone.
Setup · once per machine
Install kubectl, run gcloud auth login, then get the credentials for the threekit-preview and threekit-fts clusters and rename the contexts as shown on the VC Org Deletion page.
Each run
Start a deletion pod with ./run-preview-deletion-worker.sh or ./run-fts-deletion-worker.sh (attached to the VC Org Deletion page), then run the commands below. <USER> is written to the audit log: William, Zhongrui, Finn or Palash.
5a. Soft delete after Steps 2 to 4 are done
yarn softDelete <ORG_ID> <USER>The org becomes fully inaccessible, for Threekit too, but its data stays intact. Run it once per org, in the right environment. Write the date in the inventory and set a reminder at +30 days. To reverse it within the 30 days (late renewal, wrong org): yarn undoSoftDelete <ORG_ID> <USER>.
5b. Hard delete soft delete + 30 days or more
yarn hardDelete <ORG_ID> <USER>Permanently deletes the org's rows from the PostgreSQL and MySQL databases. It keeps the orgs entry (with deletedAt) and the auditlogs, so the org can still be identified.
5c. BigQuery hard delete batched
yarn BQHardDelete <USER> <ORG_IDS...>The user comes first here, then any number of org IDs separated by spaces. Each run scans every table, so batch all the orgs past their 30 days into one run per environment.
--ignore-soft-deletion-period in regular use.Closure and record keeping
The case is only closed once the record shows exactly what was removed. Past offboardings closed with "done" and no list, which made them impossible to check later.
- Completed inventory (with dates) in the Notion case note and in the Salesforce closure comment.
- Exports delivered, or "no export requested" confirmed by the CSM.
- CSM confirms on the case.
- Hard deletion date recorded and tracked until done (BigQuery included).
- Implementation documentation page marked as decommissioned.
Open questions
Still to be decided before this SOP is final.
- TimingSoft delete on the cut-off date, or after a grace period (late renewals, missed export)? How long?
- ExportsWho produces the exports (Support, CSM, Services), and are they billable?
- CustomerDoes the customer get a written deletion confirmation after the hard delete?
- CaseShould the case stay open (Waiting) until the hard delete, or close after the soft delete with a follow-up task?
- ScopeReviving a former customer app for demo purposes: separate SOP?
References
- VC Org Deletion (Notion)
- Customer Org Decommissioning and Deletion (Notion)
- Past offboarding case notes (Notion):
- Back to the Customer Journey