---
schema_version: "1"
id: e0ef5f44a16708adb990cf96d7588e365d9f88a1ee0a0717e1c012585513c349
title: Delete Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_delete_action_51927.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_delete_action_51927.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ae823bf6cafb9a7bfcc36535ee200903ef3e1ee66cefc6c43b5199210578741c
description: 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

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.

To identify the record's JSON path for the Path to Id field, preview the Omniscript. For example, this data JSON contains a list of Accounts.

```
{ "Account":  { "accId": ["001f400000EPQ8o", "001f400000BAkbn"] }  }	
```

Using his example, the path to delete the array of Account ids is: `%Account:accId%`.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d66408e46">
            <p style="margin-bottom:0;"> Property </p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d66408e52">
            <p style="margin-bottom:0;"> Description </p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Type</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Type of sObject record to delete. For example, Account is a Type of
              sObject.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Path to Id</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Path to the JSON node that contains the Id or list of Ids of the records to
              delete. Supports merge syntax.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">All Or None</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">When checked, the operation fails if any of the records are not deleted.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Entity Is Deleted Message</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Message that displays when a record is deleted.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Delete Failed Message</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Message that displays when the action fails to delete a record.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Invalid Id Message</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Message that displays when an invalid Id is sent to the Delete Action.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Configuration Error Message</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Message that displays when the Delete Action has a configuration error.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Confirm</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Controls whether the modal displays.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Confirmation Dialog Message</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">The Confirmation Modal's message text. The default message text is
              <kbd>Are you sure? This action cannot be undone.</kbd>
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Confirm Label</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Button label for the Confirmation Modal's confirm action.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e46 ">
            <p style="margin-bottom:0;">
              <strong class="uicontrol">Cancel Label</strong>
            </p>
          </td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d66408e52 ">
            <p style="margin-bottom:0;">Button label for the Confirmation Modal's cancel action.</p>
          </td>

        </tr>
      </tbody>
    </table>