The DELETE action deletes an existing Salesforce record.
Use this action when a process needs to remove a Salesforce object such as an Account, Contact, Opportunity, Case, or custom object record. The action identifies a Salesforce record using the Salesforce object type and record ID. Salesforce attempts to delete the specified record and returns a status indicating whether the operation completed successfully.
Because deleting records can affect business processes and reporting, this action should be used only when record removal is required by the business process.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| SObjectName | String | Required | The name of the Salesforce object to delete, such as Account, Contact, Opportunity, or a custom object. |
| SObjectId | String | Required | The unique Salesforce identifier of the record to delete. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| salesforceStatus | String | Optional | The HTTP status code returned by Salesforce. Use this value to determine whether the delete operation completed successfully. |