---
title: "Delete artifact"
method: DELETE
path: "/v1/machines/{machine_id}/artifacts/{artifact_id}"
tags: ["Machine Lifecycle", "Machine Artifacts"]
---

# Delete artifact

`DELETE /v1/machines/{machine_id}/artifacts/{artifact_id}`

## Path parameters

- `machine_id` string, required
- `artifact_id` string, required

## Headers

- `X-Dedalus-Org-Id` string

## Response `200`

OK

- ArtifactResponse
  - `artifact_id` string, required
  - `created_at` string, date-time, required
  - `download_url` string
  - `execution_id` string
  - `expires_at` string, date-time
  - `machine_id` string, required
  - `mime_type` string
  - `name` string, required
  - `sha256` string
  - `size_bytes` integer, required

## Other responses

- `401` — Authentication required
- `403` — Forbidden
- `429` — Rate limited
- `503` — Dependency unavailable
- `default` — Error

## Changes

- **2026-05-12** `c756c361d33d` — 4 breaking, 2 warning
  - for the `path` request parameter `artifact_id`, the minLength was increased from `0` to `1`
  - for the `path` request parameter `machine_id`, the minLength was increased from `0` to `4`
  - added the pattern `^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9])?$` to the `path` request parameter `artifact_id`
  - added the pattern `^dm-[a-z0-9]([a-z0-9-]*[a-z0-9])?$` to the `path` request parameter `machine_id`
  - …2 more
- **2026-04-01** `6a258bad8212` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api/changes/v1/machines/:machine_id/artifacts/:artifact_id/delete.md)

---

[API](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api.md) · [All operations](https://skmtc.dev/dedalus-labs/apis/dedalus-cloud-services-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dedalus-labs/dedalus-cloud-services-api/revisions/e76f392b92b7/schema)
