---
title: "Delete Images Endpoint"
method: POST
path: "/deleteImages"
---

# Delete Images Endpoint

`POST /deleteImages`

Deletes multiple images from the system.
- If images are NOT in trash: performs soft delete (moves to trash)
- If images are already in trash: performs permanent delete (removes from S3 and DB)

Expects:
    - JSON with:
        - 'imageIds': list of image IDs to delete
        - 'projectId'

Returns:
    - Success message with counts of deleted images
    - Error if imageIds is missing or invalid

## Request body

- DeleteImagesRequest
  - `projectId` integer, required
  - `imageIds` string[], required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/pavoot/apis/fastapi.md) · [All operations](https://skmtc.dev/pavoot/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pavoot/fastapi/revisions/3966713f5d52/schema)
