# Salesforce Delete

The Salesforce Delete step deletes records from Salesforce using the Salesforce web service.

You can delete a batch of records by specifying:

* a starting field that contains the Salesforce ID (**Fieldname id**)
* the number of records to delete (**Batch size**)

### See also

* [Salesforce Input](/pdia-data-integration/pdi-transformation-steps-reference-overview/salesforce-input.md)
* [Salesforce Insert](/pdia-data-integration/pdi-transformation-steps-reference-overview/salesforce-insert.md)
* [Salesforce Update](/pdia-data-integration/pdi-transformation-steps-reference-overview/salesforce-update.md)
* [Salesforce Upsert](/pdia-data-integration/pdi-transformation-steps-reference-overview/salesforce-upsert.md)

### General

* **Step name**: Specify the unique name of the Salesforce Delete step on the canvas. You can customize the name or leave it as the default.

### Connection

| Option                        | Description                                                                                                                                       |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Salesforce webservice URL** | URL of the Salesforce web service. The URL depends on the Salesforce API version used by PDI. Salesforce API versions 47.0 to 60.0 are supported. |
| **Username**                  | User name for authenticating to Salesforce (for example, `myname@company.com`).                                                                   |
| **Password**                  | Password followed by your security token. For example, if password is `PASSWORD` and token is `TOKEN`, enter `PASSWORDTOKEN`.                     |
| **Test connection**           | Verifies that the connection can be made using the configured settings.                                                                           |

### Delete settings

| Option                            | Description                                                                                                                                                                        |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Time out**                      | Timeout in milliseconds. Default is `60000`.                                                                                                                                       |
| **Use compression**               | Select to use `.gzip` compression between PDI and Salesforce.                                                                                                                      |
| **Rollback all changes on error** | Select to roll back changes unless all records process successfully. If selected, records with errors are marked as failed in the results. If cleared, partial success is allowed. |
| **Batch size**                    | Number of records to delete per batch. Default is `10`.                                                                                                                            |
| **Module**                        | Salesforce object/module to delete from (default is `Account`). This list is populated after a successful **Test connection**.                                                     |
| **Fieldname id**                  | Incoming field that contains the Salesforce ID for records to delete. This list is populated with fields from previous steps (for example, Salesforce Input).                      |

### Metadata injection support

All fields of this step support metadata injection. You can use this step with [ETL metadata injection](/pdia-data-integration/pdi-transformation-steps-reference-overview/etl-metadata-injection.md) to pass metadata to your transformation at runtime.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/pdi-transformation-steps-reference-overview/salesforce-delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
