Delete records in objects
Using the Salesforce provider's Delete method, you can delete records in a Salesforce object. This is helpful when a data cleanup is needed due to outdated, incorrect, or irrelevant data. It is essential to exercise caution when deleting records, as the action is irreversible. In use an action.confirm with a modal to provide a message before deleting the record permanently. Ensure you have sufficient rights in Salesforce to delete a record in an object.
Examples are based on test data in a demo Salesforce environment. Copying the sample code must be adjusted to represent your own Salesforce environment.
This example uses a list type with a component.list-item with a rightElement: button to execute the Salesforce provider's method: delete.