constresults=awaitg.sys.system.dropIndexes({instance:'mysql8',database:'inventory',table:'orders',indexes:['am_ix_orders_customer_id_status_3f9a1c','old_idx_status'],ifExists:true,// default : a missing index is NOT_FOUNDcontinueOnError:true,// default : one refused drop does not stop the others});// results[0] : { status: 'DROPPED', fields: ['customer_id', 'status'], ... }// results[1] : { status: 'NOT_FOUND', message: 'The index "old_idx_status" does not exist.', ... }
Several tables at once : give a list of such objects, the results come back in one flat list.
instance: "crm::acme" drops in the database of the tenant acme of the multi-tenant instance crm.