Permanently Removing an Existing Object
To permanently remove an existing object, perform these steps:
-
Use
newView()
to access the appropriate view object for programmatic access -
Find the object by id or find one or more objects using a view criteria, depending on your requirements
-
Call the
remove()
method on the row or rows as needed
The changes will be saved as part of the current transaction when the user commits it.