Delete Operation

To execute delete operations on an MBO, get an instance of the MBO, set the MBO attributes, then call the delete() operation.

Customer cust = Customer.findById(101);
cust.delete();

For MBOs in a relationship, perform a delete as follows:

 Customer cust = Customer.findById(101);
        com.sybase.collections.ObjectList orders = cust.getSalesOrders();
        SalesOrder order = (SalesOrder)orders.getByIndex(0);
        order.delete();
        cust.submitPending();
<PkgName>DB.synchronize(); 
// or <PkgName>DB.synchronize (String synchronizationGroup)