---
title: "Delete a variant from a trip."
method: DELETE
path: "/v1/trips/{id}/variants/{variantId}"
tags: ["Public API v1"]
---

# Delete a variant from a trip.

`DELETE /v1/trips/{id}/variants/{variantId}`

## Request

- Base URL: `https://api.mynextadventure.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mynextadventure.cloud/v1/trips/{id}/variants/{variantId}`
- Auth: API key in header `X-API-Key`

## Path parameters

- `id` string, required
- `variantId` string, required

## Response `200`

- DeleteVariantResultV1Dto
  - `deleted` boolean, required
  - `id` string, required: ID of the deleted variant.

## Other responses

- `400`: Cannot delete the only variant of a trip.
- `404`: Trip or variant not found, or no edit access.

---

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