DELETE Method Example

The following method deletes a specified customer in response to a DELETE request.

deleteCustomer(pId: Integer);
begin
    // Delete customer with specified id
    beginTransaction;
    delete app.myRoot.allCustomers.getAtKey(pId);
    commitTransaction;
end;