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

# prune images

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

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/container/controller.(*ContainerController).PruneImages`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func2`

---

## Headers

- `Accept` string

## Response `200`

OK

- PruneImagesResponse — PruneImagesResponse schema
  - `data` object
    - `images_deleted` object[], nullable
      - `deleted` string
      - `untagged` string
    - `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.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/b8c4e3fcf23f/schema)
