---
schema_version: "1"
id: 51ee04d402f2581bce5207690b03720c6ae977695783281858ce6ff1cfb96587
title: Delete Action (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_delete_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_delete_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 795ebcbc0797a73e758ac63d3eb6a72106d7862b5492003040bc69f6860dd6e6
description: For the managed package runtime, enable users to delete one or more sObject records by using the Delete Action. Use an Object's Record Id to determine which record to delete. Vlocity recommends using a merge field in the Path to Id field that refers to an Id or a list of Ids in the data JSON.
products:
  - Omnistudio
release: "264"
---
# Delete Action (Managed Package)

For the managed package runtime, enable users to delete one or more sObject records by using the Delete Action. Use an Object's Record Id to determine which record to delete. Vlocity recommends using a merge field in the Path to Id field that refers to an Id or a list of Ids in the data JSON.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. Preview the Omniscript and identify the JSON path for the record. For example, this data JSON contains a list of Accounts:
    
    ```
    { "Account":  { "accId": ["001f400000EPQ8o", "001f400000BAkbn"] }  }	
    ```
2. In the Delete Action properties, click Add sObject to Delete.
3. In the **Type** column, select an Object.
4. In the **Path to Id** field, enter the JSON path for the record id using merge field syntax. Using the Account example, the path to delete the array of Account ids is: `%Account:accId%`.
5. Preview the Omniscript and use a test record's id to test the functionality.

- **[Confirm Record Deletion (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_confirm_record_deletion.htm&release=264.0.0&type=5)**  
    For the managed package runtime, enable users to confirm the deletion of a record using the Confirmation Modal.
- **[Display Messages from a Delete Action (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_display_messages_from_a_delete_action.htm&release=264.0.0&type=5)**  
    For the managed package runtime, display messages when the operation succeeds or fails by configuring these fields in the Error Messages section:
- **[Delete Action Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_delete_action_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, this page contains information on Delete Action Properties.