---
title: "Delete 1 image"
method: DELETE
path: "/imgs/{image_id}"
tags: ["Images"]
---

# Delete 1 image

`DELETE /imgs/{image_id}`

Remove existing image by ID from the database.

## Query parameters

- `wait` boolean — Wait for completion?
- `urgent` boolean — Enqueue at head of queue if True
- `strict` boolean — Use strict mode if True

## Response `200`

image successfully deleted

- OperationOut — Output of: - a synchronous (blocking) operation. POST /imgs?wait=true - operation status. GET ops/<op_id>
  - `method` 'add' | 'upd' | 'del' | 'multiple', required — Tipo de respuesta asociada a una operación con imágenes.
  - `resource` 'video' | 'image' | 'celebs', required
  - `num_total` integer, required — Total of elements.
  - `num_good` integer, required — Number of correctly processed elements.
  - `num_bad` integer, required — Number of failed processed elements.
  - `is_started` boolean, required — Boolean indicating if the operation has started.
  - `is_finished` boolean, required — Boolean indicating if the operations has finished.
  - `all_good` boolean, nullable, required — Boolean indicating that there is no failed elements yet.
  - `do_wait` boolean, required — Boolean for know if have to wait or not.
  - `do_urgent` boolean, required — Boolean for know if it is an urgent operation.
  - `do_strict` boolean, required — Boolean for know if is required strict operations over DB.
  - `idle_ms` number, required — Duration (milliseconds) between the operation has been created and has started.
  - `exec_ms` number, required — Duration (milliseconds) between the operation has been started and has finished.
  - `created_at` string, required — Creation datetime.
  - `started_at` string, required — Start datetime.
  - `finished_at` string, required — Finalization datetime.
  - `errors` OpError[], required — List of errors that occurred during processing the operation.
    - `id` integer, required — Identifier of the resource that triggered the error.
    - `msg` string, required — Human-readable description of the error returned by the system.

## Other responses

- `202` — image deletion accepted
- `422` — Validation Error

---

[API](https://skmtc.net/wesog/apis/wesog-api.md) · [All operations](https://skmtc.net/wesog/apis/wesog-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wesog/wesog-api/versions/97381dd1ff4c/schema)
