---
title: "Delete image"
method: DELETE
path: "/preview/v2/images/{id}"
tags: ["Images"]
---

# Delete image

`DELETE /preview/v2/images/{id}`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Delete an image.

## Path parameters

- `id` string, required — A resource path like 'sfc:image:acme:prod:my-image' _or_ an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

## Response `200`

Image deleted

- SfcApiDeleteImageResponse
  - `object` 'image', required
  - `deleted` boolean, required
  - `name` string, required

## Other responses

- `401` — Unauthorized request
- `403` — Image cannot be deleted via this endpoint (e.g. default images)
- `404` — Image not found
- `409` — Image is referenced by an instance template or in use by an active instance
- `500` — Internal server error

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
