---
title: "Delete a container"
method: DELETE
path: "/container/{ocid}"
tags: ["Container"]
---

# Delete a container

`DELETE /container/{ocid}`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/{ocid}`
- Auth: API key in header `Authorization`

Queue deletion of a container; volumes are kept unless deleteVolumes is true

## Path parameters

- `ocid` integer, required

## Query parameters

- `deleteVolumes` boolean

## Response `202`

Accepted

- GithubComAlchemillahqSylveInternalAPIResponseInternalHandlersContainerTaskResponse
  - `data` InternalHandlersContainerTaskResponse
    - `action` string
    - `ocId` integer
    - `outcome` string
    - `taskId` integer
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/:ocid/delete.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
