Skip to content
Management API Reference

Rollback database migrations and remove them from history table

delete/v1/projects/{ref}/database/migrations

OAuth scopes

  • database:write

The fine-grained token must include the following permissions to access this endpoint:

  • database_migrations_write

Path parameters

  • ref
    Required
    string

    Project ref

Query parameters

  • gte
    Required
    string

    Rollback migrations greater or equal to this version

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

1
{}