Actions27
- Database Actions
- Storage Actions
Database → Drop Column
AI-generatedSummary
Drops a column from a Supabase table. Requires table name and column name; optionally set cascade to true to drop dependent objects. Returns an object with operation details, the executed SQL, and success flag.
Inputs
- tableName (required) — Name of the table to modify
- columnName (required) — Name of the column to drop
- cascade — Whether to cascade the drop to dependent objects (default: false)
Output shape
Array of objects, each containing: operation (string), tableName (string), columnName (string), sql (string), success (boolean)
On error, throws an exception instead of returning data.
Examples
Example 1: Drop a column named 'old_field' from the 'users' table
Table Name: users, Column Name: old_field, Cascade: false