clean_migration_target
Clean conflicting database objects, storage buckets, or both from a Supabase migration target to prepare for execution. Requires explicit user confirmation via confirmationProjectRef; irreversible.
Instructions
Destructively clean conflicting objects from a Supabase Cloud migration target before execution starts. Call get_clean_target_plan first and take confirmProjectRef from its response — it reports the live state and whether cleanup is even available. DATABASE deletes user-created database objects, Supabase migration history, and existing authentication users/sessions while preserving Storage. STORAGE empties and deletes every Storage bucket and file while preserving database/auth data. PROJECT performs both cleanups. This cannot be undone. Before calling, get the migration, present the exact scope consequences and targetConflictReport.confirmationProjectRef, and obtain explicit user confirmation for that exact project and scope. Copy the returned confirmationProjectRef into confirmProjectRef; never guess it. The migration remains paused after cleanup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Migration ID | |
| scope | Yes | Exact destructive scope explicitly approved by the user | |
| confirmProjectRef | Yes | Exact targetConflictReport.confirmationProjectRef repeated after explicit user confirmation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Parsed JSON response from the Staticbot public API |