As far as I know, dbDelta()
is onlyprimarily used to add tables to the database. ToIt can also add, remove or change or alter columns. To delete columns, you should use $wpdb->query()
:
global $wpdb;
$table = $wpdb->prefix . 'table_name';
$wpdb->query( "ALTER TABLE $table DROP COLUMN column_name" );