Delete all objects of the specified class.
MCO_RET mco_uda_delete_all( /*IN*/ mco_trans_h t, unsigned short struct_no );
t
struct_no
mco_dict_struct_count() - 1).This function deletes all objects of the specified class.
MCO_S_OK
Application snippet:
int main(int argc, char* argv[])
{
MCO_RET rc;
mco_db_h db;
mco_trans_h t;
unsigned int struct_no = 1;
...
rc = mco_trans_start(db, MCO_READ_WRITE, MCO_TRANS_FOREGROUND, &t);
if ( MCO_S_OK == rc )
{
rc = mco_uda_delete_all(t, struct_no);
rc = mco_trans_commit(t);
}
...
}