Delete visitor profile API reference
You can use an API to delete visitor profiles that are logged with Sitecore Search. To help you use this API, refer to Using an API to delete a visitor profile, which states the prerequisites and includes a sample request and response.
API URL and methods
The API accepts application/JSON, exposes one endpoint, and supports one method:
DELETE https://api.rfksrv.com/user/v1/users-history/<domainID>?ids=<ID1,ID2>
Data model and parameters
Here's the data model of this API:
{
"method": "DELETE",
"url": "https://api.rfksrv.com/user/v1/users-history/<domainID>?ids=<comma-separated visitor identifiers>
"headers": {
"Authorization": "API key or access token"
}
}The API has the following URL parameters:
|
Key |
Type |
Description |
|---|---|---|
|
|
String |
Required. Numeric domain identifier. To see your Example: |
|
|
String |
Required. Unique identifiers of the visitors whose profiles you want to delete. You can pass any of the following unique visitor identifiers you previously sent Search, as specified in the Events API model and Search and Recommendation API model:
To delete multiple visitor profiles in a single request, pass IDs separated with commas. You can mix ID types. For example, to delete three visitor profiles, you can pass:
|
|
|
String |
Optional. Identifier for this request that you can use for internal tracking. Pass any unique string. If you do not pass a |
The API has the following header parameters:
|
Key |
Type |
Description |
|---|---|---|
|
|
String |
Required. API key or access token with the Example: |
The API has the following response parameters:
|
Key |
Type |
Description |
|---|---|---|
|
|
String |
Unique identifier for this request. You see this if the response was successful. If you pass a If you don't pass a Example: |
If the request fails, you'll see an error code and error message.