Skip to navigation

Delete a migration

Discards a draft migration. Only a draft can be deleted; a committed one is cancelled instead.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

migrationstringRequired1-255 characters

The migration’s mig_ ID.

Headers

Paid-BetaenumRequired

This endpoint is in the migrations=v1 beta. Send this header to use it.

Allowed values:

Response

200
idstring1-255 characters
The deleted resource's ID.
deletedboolean
The unused resource was deleted.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error