remove_service
Deletes an existing app, model, or database service by tearing down its resources and removing its record. Optionally bypass dependency guards or purge durable state like secrets and data.
Instructions
Delete a service (teardown + remove).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name or job id of an existing service (app, model or database); both resolve to the same row. | |
| force | No | true bypasses the dependency guard (a model or database other apps still bind), kills an in-flight run and cancels an in-flight cutover; a cross-owner dependent makes it admin-only. false (the default) refuses those with 409 ``resource.in_use`` / ``service.run_in_progress`` / ``service.cutover_in_progress``. | |
| purge | No | CSV of durable state to destroy alongside the row: ``secrets``, ``data``, ``images``, ``workspace``. Default ``secrets``; an empty string purges nothing; an unknown token is a 422 ``service.invalid_purge``. Deleting a managed DATABASE requires ``data`` in the set (409 ``db.delete_requires_purge``, not bypassable by ``force``), and purging ``data`` always purges ``secrets`` too. | secrets |
| idempotency_key | No | Caller-chosen key: a retry with the same key replays the first result instead of acting twice. Omit and a fresh key is minted per call, so each call acts. |