Delete Context Records Action
Deletes one or more records from a context instance.
This action is available in API version 67.0 and later.
Special Access Rules
Available in Developer, Enterprise, Professional, and Unlimited editions for Industries clouds where Context Service is enabled.
Supported REST HTTP Methods
- URI
- /services/data/v67.0/actions/standard/deleteContextRecords
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearertoken
Inputs
| Input | Details |
|---|---|
| contextId |
|
| dataPaths |
|
| isPermanentDelete |
|
Usage
Use this action to delete one or more records from a context instance. By default, records are soft deleted. To permanently delete the records, set isPermanentDelete to true.
Example
- POST
-
This sample request is for the Delete Context Records action.
1{ 2 "inputs": [ 3 { 4 "contextId": "0000000a07da091002517526756248297be68492e6b442e8ad80182d518e45aa", 5 "dataPaths": [ 6 { "dataPath": ["001xx000003GbMhAAK", "003xx000004Wia5AAC"] } 7 ], 8 "isPermanentDelete": false 9 } 10 ] 11} -
This sample response is for the Delete Context Records action.
1[ 2 { 3 "actionName": "deleteContextRecords", 4 "errors": null, 5 "isSuccess": true, 6 "outputValues": {} 7 } 8]