Remove dependencies on a prompt template so you can safely delete or modify the template without breaking other components.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations |
| User Permissions Needed | |
|---|---|
| To create and manage prompt templates in Prompt Builder: |
Prompt Template Manager permission set
OR Customize Application permission set |
- For each Apex reference listed, from Setup, in the Quick Find box, enter Apex Classes, and then select Apex Classes.
- Open the Apex class.
- Locate the prompt template reference.
- Update the code to use a different template, or remove the invocation.
- Deploy the updated Apex class.
- Return to Prompt Builder, and then repeat the steps to open the Delete Template modal.
- Verify that no references appear.
- Delete the template version, or update the template as needed.