---
title: "Delete Migration"
method: DELETE
path: "/v1/namespaces/migrations/{migration_id}"
tags: ["Namespace Migrations"]
---

# Delete Migration

`DELETE /v1/namespaces/migrations/{migration_id}`

Delete a migration record.

Only draft, completed, failed, or cancelled migrations can be deleted.

Args:
    request: FastAPI request
    migration_id: Migration ID

## Path parameters

- `migration_id` string, required

## Response `204`

Successful Response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

## Changes

- **2026-08-09** `5d4c905106b4` — 1 info
  - the endpoint scheme security `BearerAuth` was added to the API

[Change history](https://skmtc.dev/mixpeek/apis/mixpeek-api/changes/v1/namespaces/migrations/:migration_id/delete.md)

---

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