---
title: "Delete a live service from a sandbox"
method: DELETE
path: "/api/v0beta1/sandboxes/{id}/services/{ref}"
tags: ["Sandboxes"]
---

# Delete a live service from a sandbox

`DELETE /api/v0beta1/sandboxes/{id}/services/{ref}`

## Path parameters

- `id` string, required
- `ref` string, required — Service reference: its name (default) or row id. Use `by` to choose.

## Query parameters

- `by` 'name' | 'id' | 'ref' | 'name_or_id' — How to interpret the service `{ref}`: name (default), id, or ref/name_or_id (matches either; rejects ambiguity).
- `sandbox_by` 'name' | 'id' | 'ref' | 'name_or_id' — How to interpret the sandbox `{id}` path param: ref/name_or_id (default; matches an id or a name and rejects an ambiguous match), name, or id.

## Response `204`

Deleted.

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `409` — Error

---

[API](https://skmtc.net/amika/apis/amika-api.md) · [All operations](https://skmtc.net/amika/apis/amika-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amika/amika-api/revisions/664536fccd0e/schema)
