Sub topic 11
Zero data retention with model providers
This chapter assumes you know what a prompt is, understand the basic privacy concerns around PII (personally identifiable information) and data residency, and have read the chapter on the LLM gateway. It covers what zero data retention means, what it does not mean, and how it fits with the other controls.
What zero data retention means
Zero data retention (ZDR) is an agreement between Salesforce and an external model provider. Under it, the provider does not store the prompts or responses Salesforce sends, and does not use them to train or improve its models. The provider processes the request, returns the response, and discards the data.
The agreement is a contractual and technical commitment. It is enforced at the provider, outside Salesforce's own systems. The LLM gateway is where requests leave Salesforce, so that is where the commitment applies.
Where it sits in the flow
The prompt reaching the provider has already been grounded and masked. ZDR is a second layer. Masking reduces what sensitive data leaves Salesforce. ZDR limits what the provider can do with the data that does leave.
What ZDR does and does not cover
| Concern | Covered by ZDR? | What handles it |
|---|---|---|
| Provider stores the prompt after responding | Yes | ZDR agreement |
| Provider trains its model on your data | Yes | ZDR agreement |
| Sensitive values visible in the prompt | No | Data masking |
| User sees data they should not access | No | Secure data retrieval |
| Harmful model output | No | Toxicity detection |
| Record of who asked what | No | Audit trail |
Common misunderstandings
- ZDR does not mean the data is never processed. The provider must read the prompt to generate a response. It just does not keep it.
- ZDR does not remove the need for masking. Unmasked values that are sent still pass through the provider's systems during processing.
- ZDR does not mean Salesforce keeps nothing. Salesforce stores audit and feedback data inside its own boundary. That is a separate control, covered in a later chapter.
- Coverage depends on the model path. The terms can differ between Salesforce-hosted models, models from partner providers, and models you connect yourself. Check which path an agent uses before you assume ZDR applies.
Practical checks
- Identify which model each agent or prompt template uses.
- Confirm in Salesforce's current documentation and your contract whether ZDR applies to that model path.
- Record the answer in your data protection review, since regulators and auditors often ask about provider retention.
- Treat ZDR as one layer and keep masking and permissions in place.
Exercise
A colleague says, "Because the model provider has zero data retention, we can turn off data masking for our case summary agent." Is this reasonable? Explain.
Show answer
No. ZDR only limits what the provider stores and reuses after processing. Without masking, sensitive values such as names and emails would still be sent to the provider and processed there. Masking reduces what leaves Salesforce at all, while ZDR limits retention of what does leave. The two controls address different risks, so one does not replace the other.