---
title: "Post Serving Teardown"
method: POST
path: "/api/serving/teardown"
tags: ["serving"]
---

# Post Serving Teardown

`POST /api/serving/teardown`

Undeploy an org's live serving adapters (called on org deletion).

Owner-gated: the frontend org-delete flow calls this with the deleting owner's
session BEFORE removing the org row, so the live Modal adapters are stopped and
the GPU capacity reclaimed (otherwise serving keeps billing after the org is
gone, since the db cascade only removes the adapter rows, not the running app).
Best-effort per adapter; returns the per-adapter teardown counts.

## Request body

- ServingTeardownBody
  - `orgId` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/freesolo/apis/platform-backend.md) · [All operations](https://skmtc.dev/freesolo/apis/platform-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/freesolo/platform-backend/revisions/5626e92675af/schema)
