- Delete key-value pairs from a data extension
Deletes the key-value pairs you provide in the name query parameter from a data extension for a guest.
For example, if your data extension contains the vipMember and loyaltyMember keys, you can delete both keys and their values by making the following request:
{baseURL}/v2.1/guests/{guestRef}/extensions/{dataExtensionName}/fields?name=vipMember|loyaltyMember
If you don't provide the query parameter, this operation will empty the data extension: the data extension itself will not be deleted, but all the key-value pairs in it will.
- Production server APhttps://api-engage-ap.sitecorecloud.io/v2.1/guests/{guestRef}/extensions/{dataExtensionName}/fields
- Production server EUhttps://api-engage-eu.sitecorecloud.io/v2.1/guests/{guestRef}/extensions/{dataExtensionName}/fields
- Production server JPhttps://api-engage-jpe.sitecorecloud.io/v2.1/guests/{guestRef}/extensions/{dataExtensionName}/fields
- Production server UShttps://api-engage-us.sitecorecloud.io/v2.1/guests/{guestRef}/extensions/{dataExtensionName}/fields
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X DELETE \
-u '<username>:<password>' \
'https://api-engage-ap.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03/extensions/ext1/fields?name=vipMember%7CloyaltyTier'Successful operation
The date and time when the resource was created in Sitecore CDP.
The URL of the guest extension.
The date and time when the resource was last updated in Sitecore CDP.
The name of the data extension. You can only use a name once in a collection.
A key-value pair in the data extension. Example: "vipMember": true
{ "createdAt": "2024-01-01T16:17:16.000Z", "guest": { "href": "https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03" }, "href": "https://api-engage-eu.sitecorecloud.io/v2.1/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03/ext1", "key": "default", "modifiedAt": "2024-01-01T16:17:16.000Z", "name": "ext", "ref": "6a5cb3c2-1a4a-56d8-8a01-1ede232b9db2", "{exampleKey1}": "{exampleValue1}", "{exampleKey2}": "{exampleValue2}" }