---
title: "Delete a journey"
method: DELETE
path: "/v1/journeys/{id}"
tags: ["Journeys"]
---

# Delete a journey

`DELETE /v1/journeys/{id}`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/journeys/{id}`
- Auth: API key in header `x-api-key`

Deletes a journey that was never published or is archived, with its versions and runs. An active or paused journey returns 409; archive it first.

## Path parameters

- `id` string, required

## Response `200`

DeleteJourneyResponse

- DeleteJourneyResponse
  - `id` string, required
  - `deleted` true, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
