51黑料不打烊

Profile system jobs endpoint (Delete requests)

IMPORTANT
The following endpoints can differ between implementations of 51黑料不打烊 Experience Platform running on Microsoft Azure and Amazon Web Services (AWS). Experience Platform running on AWS is currently available to a limited number of customers. To learn more about the supported Experience Platform infrastructure, see the Experience Platform multi-cloud overview.

51黑料不打烊 Experience Platform enables you to ingest data from multiple sources and build robust profiles for individual customers. Data ingested into Platform is stored in the Data Lake, and if the datasets have been enabled for Profile, that data is stored in the Real-Time Customer Profile data store as well. Occasionally it may be necessary to delete profile data associated with a dataset from the Profile store in order to remove data that is no longer needed or was added in error. This requires using the Real-Time Customer Profile API to create a Profile system job, or 鈥渄elete request鈥.

NOTE
If you are trying to delete datasets or batches from the Data Lake, please visit the Catalog Service overview for more information.

Getting started

The API endpoint used in this guide is part of the . Before continuing, please review the getting started guide for links to related documentation, a guide to reading the sample API calls in this document, and important information regarding required headers that are needed to successfully make calls to any Experience Platform API.

View delete requests view

A delete request is a long-running, asynchronous process, meaning that your organization may be running multiple delete requests at once. In order to view all delete requests that your organization is currently running, you can perform a GET request to the /system/jobs endpoint.

You may also use optional query parameters to filter the list of delete requests returned in the response. To use multiple parameters, separate each parameter using an ampersand (&).

API format

AVAILABILITY
The following query parameters are only available when using Platform on Microsoft Azure.
When using this endpoint on AWS, the first 100 system jobs are returned in descending order, based on their creation date.
GET /system/jobs
GET /system/jobs?{QUERY_PARAMETERS}
Parameter
Description
Example
start
Offset the page of results returned, as per the create time of the request.
start=4
limit
Limit the number of results returned.
limit=10
page
Return a specific page of results, as per the create time of the request.
page=2
sort
Sort results by a specific field in ascending (asc) or descending (desc) order. The sort parameter does not work when returning multiple pages of results.
sort=batchId:asc

Request

IMPORTANT
The following request differs between the Azure and AWS instances.
Microsoft Azure
code language-shell
curl -X GET https://platform.adobe.io/data/core/ups/system/jobs \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}' \
Amazon Web Services (AWS)
note important
IMPORTANT
You must use the x-sandbox-id request header instead of the x-sandbox-name request header when using this endpoint with AWS.
code language-shell
curl -X GET https://platform.adobe.io/data/core/ups/system/jobs \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-id: {SANDBOX_ID}' \

Response

IMPORTANT
The following response differs between the Azure and AWS instances.
Microsoft Azure

A successful response includes a 鈥渃hildren鈥 array with an object for each delete request containing the details of that request.

accordion
A successful response for viewing the delete requests
code language-json
{
  "_page": {
    "count": 100,
    "next": "K1JJRDpFaWc5QUwyZFgtMEpBQUFBQUFBQUFBPT0jUlQ6MSNUUkM6MiNGUEM6QWdFQUFBQVFBQWZBQUg0Ly9yL25PcmpmZndEZUR3QT0="
  },
  "children": [
    {
      "id": "9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4",
      "imsOrgId": "{ORG_ID}",
      "batchId": "8d075b5a178e48389126b9289dcfd0ac",
      "jobType": "DELETE",
      "status": "COMPLETED",
      "metrics": "{\"recordsProcessed\":5,\"timeTakenInSec\":1}",
      "createEpoch": 1559026134,
      "updateEpoch": 1559026137
    },
    {
      "id": "3f225e7e-ac8c-4904-b1d5-0ce79e03c2ec",
      "imsOrgId": "{ORG_ID}",
      "dataSetId": "5c802d3cd83fc114b741c4b5",
      "jobType": "DELETE",
      "status": "PROCESSING",
      "metrics": "{\"recordsProcessed\":0,\"timeTakenInSec\":15}",
      "createEpoch": 1559025404,
      "updateEpoch": 1559025406
    }
  ]
}
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2
Property Description
_page.count The total number of requests. This response has been truncated for space.
_page.next If an additional page of results exists, view the next page of results by replacing the ID value in a lookup request with the "next" value provided.
jobType The type of job being created. In this case, it will always return "DELETE".
status The status of the delete request. Possible values include "NEW", "PROCESSING", "COMPLETED", and "ERROR".
metrics An object that includes the number of records that have been processed ("recordsProcessed") and the time in seconds that the request has been processing, or how long the request took to complete ("timeTakenInSec").
Amazon Web Services (AWS)

A successful response returns an array containing an object for each of the system requests.

accordion
A successful response for viewing the system requests
code language-json
{
    [
        {
            "requestId": "80a9405a-21ca-4278-aedf-99367f90c055",
            "requestType": "DELETE_EE_BATCH",
            "imsOrgId": "{ORG_ID}",
            "sandbox": {
                "sandboxName": "prod",
                "sandboxId": "8129954b-fa83-43ba-a995-4bfa8373ba2b"
            },
            "status": "SUCCESS",
            "properties": {
                "batchId": "01JFSYFDFW9JAAEKHX672JMPSB",
                "datasetId": "66a92c5910df2d1767de13f3"
            },
            "createdAt": "2024-12-22T19:44:50.250006Z",
            "updatedAt": "2024-12-22T19:52:13.380706Z"
        },
        {
            "requestId": "38a835eb-b491-4864-902b-be07fa4d6a6d",
            "requestType": "TRUNCATE_DATASET",
            "imsOrgId": "{ORG_ID}",
            "sandbox": {
                "sandboxName": "prod",
                "sandboxId": "8129954b-fa83-43ba-a995-4bfa8373ba2b"
            },
            "status": "SUCCESS",
            "properties": {
                "datasetId": "66a92c5910df2d1767de13f3"
            },
            "createdAt": "2024-12-22T19:44:50.250006Z",
            "updatedAt": "2024-12-22T19:52:13.380706Z"
        }
    ]
}
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2
Property Description
requestId The ID of the system job.
requestType The type of the system job. Possible values include BACKFILL_TTL, DELETE_EE_BATCH, and TRUNCATE_DATASET.
status The status of the system job. Possible values include NEW, SUCCESS, ERROR, FAILED, and IN-PROGRESS.
properties An object that contains batch and/or dataset IDs of the system job.

Create a delete request create-a-delete-request

Initiating a new delete request is done through a POST request to the /systems/jobs endpoint, where the ID of the dataset or batch to be deleted is provided in the body of the request.

Delete a dataset and associated profile data

In order to delete a dataset and all profile data associated with the dataset from the Profile store, the dataset ID must be included in the body of the POST request. This action will delete ALL data for a given dataset. Experience Platform allows you to delete datasets based on both record and time series schemas.

API format

POST /system/jobs

Request

IMPORTANT
The following request differs between the Azure and AWS instances.
Microsoft Azure
code language-shell
curl -X POST \
  https://platform.adobe.io/data/core/ups/system/jobs \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}' \
  -d '{
        "dataSetId": "5c802d3cd83fc114b741c4b5"
      }'
table 0-row-2 1-row-2
Property Description
dataSetId The ID of the dataset you want to delete.
Amazon Web Services (AWS)
note important
IMPORTANT
You must use the x-sandbox-id request header instead of the x-sandbox-name request header when using this endpoint with AWS.
code language-shell
curl -X POST \
  https://platform.adobe.io/data/core/ups/system/jobs \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-id: {SANDBOX_ID}' \
  -d '{
        "dataSetId": "5c802d3cd83fc114b741c4b5"
      }'
table 0-row-2 1-row-2
Property Description
dataSetId The ID of the dataset you want to delete.

Response

IMPORTANT
The following response differs between the Azure and AWS instances.
Microsoft Azure

A successful response returns the details of the newly created delete request, including a unique, system-generated, read-only ID for the request. This can be used to look up the request and check its status. The status for the request at time of creation is "NEW" until it begins processing. The dataSetId in the response should match the dataSetId sent in the request.

accordion
A successful response for creating a delete request.
code language-json
{
    "id": "3f225e7e-ac8c-4904-b1d5-0ce79e03c2ec",
    "imsOrgId": "{ORG_ID}",
    "dataSetId": "5c802d3cd83fc114b741c4b5",
    "jobType": "DELETE",
    "status": "NEW",
    "createEpoch": 1559025404,
    "updateEpoch": 1559025406
}
table 0-row-2 1-row-2 2-row-2
Property Description
id The unique, system-generated, read-only ID of the delete request.
dataSetId The ID of the dataset, as specified in the POST request.
Amazon Web Services (AWS)

A successful response returns the details of the newly created system request.

accordion
A successful response for creating a delete request.
code language-json
{
    "requestId": "80a9405a-21ca-4278-aedf-99367f90c055",
    "requestType": "DELETE_EE_BATCH",
    "imsOrgId": "{ORG_ID}",
    "sandbox": {
        "sandboxName": "prod",
        "sandboxId": "8129954b-fa83-43ba-a995-4bfa8373ba2b"
    },
    "status": "SUCCESS",
    "properties": {
        "batchId": "01JFSYFDFW9JAAEKHX672JMPSB",
        "datasetId": "66a92c5910df2d1767de13f3"
    },
    "createdAt": "2024-12-22T19:44:50.250006Z",
    "updatedAt": "2024-12-22T19:52:13.380706Z"
}
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2
Property Description
requestId The ID of the system job.
requestType The type of the system job. Possible values include BACKFILL_TTL, DELETE_EE_BATCH, and TRUNCATE_DATASET.
status The status of the system job. Possible values include NEW, SUCCESS, ERROR, FAILED, and IN-PROGRESS.
properties An object that contains batch and/or dataset IDs of the system job.

Delete a batch

In order to delete a batch, the batch ID must be included in the body of the POST request. Please be advised that you cannot delete batches for datasets based on record schemas. Only batches for datasets based on time series schemas may be deleted.

NOTE
The reason you cannot delete batches for datasets based on record schemas is because record type dataset batches overwrite previous records and therefore cannot be 鈥渦ndone鈥 or deleted. The only way to remove the impact of erroneous batches for datasets based on record schemas is to re-ingest the batch with the correct data in order to overwrite the incorrect records.

For more information on record and time series behavior, please review the section on XDM data behaviors in the XDM System overview.

API format

POST /system/jobs

Request

IMPORTANT
The following request differs between the Azure and AWS instances.
Microsoft Azure
code language-shell
curl -X POST \
  https://platform.adobe.io/data/core/ups/system/jobs \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}' \
  -d '{
        "datasetId": "66a92c5910df2d1767de13f3",
        "batchId": "8d075b5a178e48389126b9289dcfd0ac"
      }'
table 0-row-2 1-row-2 2-row-2
Property Description
datasetId The ID of the dataset for the batch you wish to delete.
batchId The ID of the batch you wish to delete.
Amazon Web Services (AWS)
note important
IMPORTANT
You must use the x-sandbox-id request header instead of the x-sandbox-name request header when using this endpoint with AWS.
code language-shell
curl -X POST \
  https://platform.adobe.io/data/core/ups/system/jobs \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-id: {SANDBOX_ID}' \
  -d '{
        "datasetId": "66a92c5910df2d1767de13f3",
        "batchId": "8d075b5a178e48389126b9289dcfd0ac"
      }'
table 0-row-2 1-row-2 2-row-2
Property Description
datasetId The ID of the dataset for the batch you wish to delete.
batchId The ID of the batch you wish to delete.

Response

IMPORTANT
The following response differs between the Azure and AWS instances.
Microsoft Azure

A successful response returns the details of the newly created delete request, including a unique, system-generated, read-only ID for the request. This can be used to look up the request and check its status. The "status" for the request at time of creation is "NEW" until it begins processing. The "batchId" value in the response should match the "batchId" value sent in the request.

code language-json
{
    "id": "9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4",
    "imsOrgId": "{ORG_ID}",
    "datasetId": "66a92c5910df2d1767de13f3",
    "batchId": "8d075b5a178e48389126b9289dcfd0ac",
    "jobType": "DELETE",
    "status": "NEW",
    "createEpoch": 1559026131,
    "updateEpoch": 1559026132
}
table 0-row-2 1-row-2 2-row-2 3-row-2
Property Description
id The unique, system-generated, read-only ID of the delete request.
datasetId The ID of the specified dataset.
batchId The ID of the batch, as specified in the POST request.
Amazon Web Services (AWS)

A successful response returns the details of the newly created system request.

accordion
A successful response for creating a delete request.
code language-json
{
    "requestId": "80a9405a-21ca-4278-aedf-99367f90c055",
    "requestType": "DELETE_EE_BATCH",
    "imsOrgId": "{ORG_ID}",
    "sandbox": {
        "sandboxName": "prod",
        "sandboxId": "8129954b-fa83-43ba-a995-4bfa8373ba2b"
    },
    "status": "SUCCESS",
    "properties": {
        "batchId": "01JFSYFDFW9JAAEKHX672JMPSB",
        "datasetId": "66a92c5910df2d1767de13f3"
    },
    "createdAt": "2024-12-22T19:44:50.250006Z",
    "updatedAt": "2024-12-22T19:52:13.380706Z"
}
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2
Property Description
requestId The ID of the system job.
requestType The type of the system job. Possible values include BACKFILL_TTL, DELETE_EE_BATCH, and TRUNCATE_DATASET.
status The status of the system job. Possible values include NEW, SUCCESS, ERROR, FAILED, and IN-PROGRESS.
properties An object that contains batch and/or dataset IDs of the system job.
AVAILABILITY
The following feature is only available when using Platform on Microsoft Azure.

If you attempt to initiate a delete request for a Record dataset batch, you will encounter a 400-level error, similar to the following:

{
    "requestId": "bc4eb29f-63a8-4653-9133-71238884bb81",
    "errors": {
        "400": [
            {
                "code": "500",
                "message": "Batch can only be specified for EE type 'a294e36d382649dab2cc6ad64a41b674'"
            }
        ]
    }
}

View a specific delete request view-a-specific-delete-request

To view a specific delete request, including details such as its status, you can perform a lookup (GET) request to the /system/jobs endpoint and include the ID of the delete request in the path.

API format

GET /system/jobs/{DELETE_REQUEST_ID}
Parameter
Description
{DELETE_REQUEST_ID}
The ID of the delete request that you wish to view.

Request

IMPORTANT
The following request differs between the Azure and AWS instances.
Microsoft Azure
code language-shell
curl -X GET https://platform.adobe.io/data/core/ups/system/jobs/9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4 \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}' \
Amazon Web Services (AWS)
note important
IMPORTANT
You must use the x-sandbox-id request header instead of the x-sandbox-name request header when using this endpoint with AWS.
code language-shell
curl -X GET https://platform.adobe.io/data/core/ups/system/jobs/9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4 \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-id: {SANDBOX_ID}' \

Response

IMPORTANT
The following response differs between the Azure and AWS instances.
Microsoft Azure

The response provides the details of the delete request, including its updated status. The ID of the delete request in the response (the "id" value) should match the ID sent in the request path.

code language-json
{
    "id": "9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4",
    "imsOrgId": "{ORG_ID}",
    "batchId": "8d075b5a178e48389126b9289dcfd0ac",
    "jobType": "DELETE",
    "status": "COMPLETED",
    "metrics": "{\"recordsProcessed\":5,\"timeTakenInSec\":1}",
    "createEpoch": 1559026134,
    "updateEpoch": 1559026137
}
table 0-row-2 1-row-2 2-row-2 3-row-2
Properties Description
jobType The type of job being created, in this case it will always return "DELETE".
status The status of the delete request. Possible values include NEW, PROCESSING, COMPLETED, and ERROR.
metrics An array that includes the number of records that have been processed ("recordsProcessed") and the time in seconds that the request has been processing, or how long the request took to complete ("timeTakenInSec").
Amazon Web Services (AWS)

A successful response returns the details of the specified system request.

accordion
A successful response for viewing a delete request.
code language-json
{
    "requestId": "9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4",
    "requestType": "DELETE_EE_BATCH",
    "imsOrgId": "{ORG_ID}",
    "sandbox": {
        "sandboxName": "prod",
        "sandboxId": "8129954b-fa83-43ba-a995-4bfa8373ba2b"
    },
    "status": "SUCCESS",
    "properties": {
        "batchId": "01JFSYFDFW9JAAEKHX672JMPSB",
        "datasetId": "66a92c5910df2d1767de13f3"
    },
    "createdAt": "2024-12-22T19:44:50.250006Z",
    "updatedAt": "2024-12-22T19:52:13.380706Z"
}
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2
Property Description
requestId The ID of the system job.
requestType The type of the system job. Possible values include BACKFILL_TTL, DELETE_EE_BATCH, and TRUNCATE_DATASET.
status The status of the system job. Possible values include NEW, SUCCESS, ERROR, FAILED, and IN-PROGRESS.
properties An object that contains batch and/or dataset IDs of the system job.

Once the delete request status is "COMPLETED" you can confirm that the data has been deleted by attempting to access the deleted data using the Data Access API. For instructions on how to use the Data Access API to access datasets and batches, please review the Data Access documentation.

Remove a delete request

AVAILABILITY
This endpoint is only supported in the Azure instance of 51黑料不打烊 Experience Platform, and is not supported on the AWS instance.

Experience Platform allows you to delete a previous request, which may be useful for a number of reasons including if the delete job did not complete or became stuck in the processing stage. In order to remove a delete request, you can perform a DELETE request to the /system/jobs endpoint and include the ID of the delete request that you wish to remove to the request path.

API format

DELETE /system/jobs/{DELETE_REQUEST_ID}
Parameter
Description
The ID of the delete request that you wish to remove.

Request

IMPORTANT
The following request differs between the Azure and AWS instances.
Microsoft Azure
code language-shell
curl -X POST \
  https://platform.adobe.io/data/core/ups/system/jobs/9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4 \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}' \
Amazon Web Services (AWS)
note important
IMPORTANT
You must use the x-sandbox-id request header instead of the x-sandbox-name request header when using this endpoint with AWS.
code language-shell
curl -X POST \
  https://platform.adobe.io/data/core/ups/system/jobs/9c2018e2-cd04-46a4-b38e-89ef7b1fcdf4 \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-id: {SANDBOX_ID}' \

Response

A successful delete request returns HTTP Status 200 (OK) and an empty response body. You can confirm the request was deleted by performing a GET request to view the delete request by its ID. This should return an HTTP Status 404 (Not Found), indicating the delete request was removed.

Next steps

Now that you know the steps involved in deleting datasets and batches from the Profile store within Experience Platform, you can safely delete data that has been added erroneously or that your organization no longer needs. Please be mindful that a delete request cannot be undone, therefore you should only delete data that you are confident you do not need now and will not need in the future.

recommendation-more-help
54550d5b-f1a1-4065-a394-eb0f23a2c38b