# Close the workspace

`DELETE /api/v1/settings`

Owner only (`tenant.delete`). SOFT delete: sets `status=deleted` and `deleted_at`, and writes an audit_log entry in the same transaction. Nothing is destroyed — invoices, payments and the audit trail are a financial record and are retained. Every subsequent request for this workspace is refused with 403 `forbidden`, and the response clears the active-workspace cookie so a user with other memberships can switch into one.

No API key can call this route: it needs a signed-in dashboard user with the right role. A key answers 403.

## Responses

### 200

The closed tenant profile.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "tier": {
          "type": "string",
          "enum": [
            "free",
            "starter",
            "growth",
            "scale"
          ]
        },
        "invoicePrefix": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "suspended",
            "deleted"
          ]
        },
        "settings": {
          "type": "object",
          "additionalProperties": {}
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "name",
        "slug",
        "timezone",
        "tier",
        "invoicePrefix",
        "status",
        "settings",
        "createdAt",
        "updatedAt"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
