---
title: "Delete Org"
method: DELETE
path: "/super-admin/orgs/{org_id}"
tags: ["super-admin"]
---

# Delete Org

`DELETE /super-admin/orgs/{org_id}`

## Request

- Base URL: `https://app.dataassist.io` (the document declares no server; this is the origin it was published from)
- URL: `https://app.dataassist.io/super-admin/orgs/{org_id}`
- Auth: none declared

Hard-delete an org.

Sequence:
  1. Block if the org is an active marketing partner (promo codes / commission
     history must be preserved — deactivate the partnership first).
  2. Drop physical MySQL tables for every local-sync (CSV/SFTP) source so
     imported data is cleaned up before metadata rows disappear.
  3. Delete data_source_sync_runs (large payload rows not reached by cascade).
  4. DELETE FROM orgs — ON DELETE CASCADE handles everything else:
     users, OAuth tokens, data_sources, data_source_tables, audit_logs,
     credit_purchases, credit_balances, teams, team_users, team_tables, …

## Path parameters

- `org_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dataassist/apis/dataassist-io-server.md) · [All operations](https://skmtc.dev/dataassist/apis/dataassist-io-server/llms.txt) · [OpenAPI document](https://skmtc.dev/dataassist/apis/dataassist-io-server/revisions/43b22ccf75fe?raw)
