---
title: "Revoke image"
method: POST
path: "/preview/v2/images/{id}/revoke"
tags: ["Images"]
---

# Revoke image

`POST /preview/v2/images/{id}/revoke`

## Request

- Base URL: `https://api.sfcompute.com`
- URL: `https://api.sfcompute.com/preview/v2/images/{id}/revoke`
- Auth: HTTP bearer

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

Revoke a private image. Revoked images can't back new instances; existing instances continue running.

## 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 revoked

- SfcApiImageListEntry
  - `id` string, required
  - `resource_path` string, required: A resource path for a image resource. Format: sfc:image:<account>:<workspace>:<name>.
  - `owner` string, required
  - `workspace` string, required
  - `name` string, required
  - `object` 'image', required
  - `upload_status` 'started' | 'uploading' | 'completed' | 'failed' | 'revoked', required
  - `created_at` integer, required: Unix timestamp.
  - `provider` string, nullable
  - `sha256` string, nullable

## Other responses

- `401`: Unauthorized request
- `403`: Public images can't be revoked
- `404`: Image not found
- `409`: Image isn't in completed status
- `500`: Internal server error

## Changes

- **2026-05-18** `0c963953fd6c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/changes/preview/v2/images/:id/revoke/post.md)

---

[API](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation.md) - [All operations](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/revisions/93dd7661e9bb?raw)
