---
title: "Prune images"
method: POST
path: "/api/v1/container/prune/images"
tags: ["Containers"]
---

# Prune images

`POST /api/v1/container/prune/images`

Prune images.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: May mutate server state.

## Headers

- `Accept` string

## Response `200`

OK

- PruneImagesResponse — PruneImagesResponse schema
  - `data` object
    - `images_deleted` object[], nullable
      - `deleted` string, nullable
      - `untagged` string, nullable
    - `space_reclaimed` integer
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

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