---
title: "Delete artifact"
method: DELETE
path: "/artifact/{artifactID}"
---

# Delete artifact

`DELETE /artifact/{artifactID}`

Delete an artifact

## Path parameters

- `artifactID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Request body

- object
  - `sessionID` string, required — Session ID

## Response `200`

Artifact deleted

- object
  - `success` boolean, required

## Other responses

- `403` — Forbidden
- `404` — Not found

## Changes

- **2026-06-05** `8bb9a15bd144` — 1 info
  - added the non-success response with the status `403`
- **2026-04-25** `0a2d50cb4204` — 1 info
  - added the new optional `query` request parameter `workspace`
- **2026-01-19** `8814054514ee` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kaaass/apis/opencode/changes/artifact/:artifactID/delete.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) · [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kaaass/opencode/revisions/8bb9a15bd144/schema)
