Delete all objects of the specified class.
MCO_RET mco_uda_delete_all( /*IN*/ mco_trans_h t, unsigned short struct_no );
| t | A handle of an open transaction |
|
struct_no |
The class number (must be between 0 and |
This function deletes all objects of the specified class.
| MCO_S_OK | All objects of the specified class were successfully deleted |
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);
}
...
}