Delete Operation

The delete operation allows the client to delete a new record in the local database. To execute delete operations on an MBO, get an instance of the MBO, set the MBO attributes, then call the delete operation. To propagate the changes to the server, call submitPending.

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)