---
schema_version: "1"
id: 751677b7328763e71f7290b15cc8f1897586140b86721e5a6f3ca81563b2f869
title: Delete Records from Trending Datasets
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/analytics_delete_records_from_datasets.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.analytics_delete_records_from_datasets.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8375d4af2849e69277b4e7cd743a9b6a8fb90558d47853152163848287902b26
description: General Data Protection Regulation (GDPR) requires you to delete customers’ personal data when customers request it, or when it’s no longer necessary to keep. You can remove customers’ data from the Analytics for Loyalty app by deleting the records from a trending dataset.
products:
  - Loyalty Management
release: "264"
---
# Delete Records from Trending Datasets

General Data Protection Regulation (GDPR) requires you to delete customers’ personal data when customers request it, or when it’s no longer necessary to keep. You can remove customers’ data from the Analytics for Loyalty app by deleting the records from a trending dataset.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an extra charge in Professional, Performance, and Unlimited editions that have Loyalty Management enabled.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d71780e54">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d71780e54 ">To delete records from datasets</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d71780e54 ">CRM Analytics Plus Admin and Loyalty Analytics Admin</td>

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

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/images/icon_note.png)

Note Before you delete records, make sure your app’s data is synced and it has the latest data.

You can delete a contact or an account from the Analytics for Loyalty trending datasets.

1. In CRM Analytics Studio, click and then select **Data Manager**.
2. Select **Dataflows & Recipes**.
3. Under Dataflows, look for GDPR Trending and then click ![dropdown icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/dropdown_icon.png)
4. Select **Edit**.
5. Select the filter node and edit the SAQL filter.
6. To delete an account,
    1. Select the **Filter:DeletedAccountsTrending** node.
    2. In the SAQL filter string, replace NA with the ID of the account you want to delete.
        
        ![Delete Accounts](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/loyalty_analytics_filter_deleted_accounts_trending_node.png)
    3. Save your changes.
7. To delete a contact,
    1. Select the **Filter:DeletedContactsTrending** node.
    2. In the SAQL filter string, replace NA with the ID of the contact you want to delete.
        
        ![Delete Contacts](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-loyalty_management-264-0-0-production-enus/0590ce3e-5a09-45ab-8e5e-68f359c35886/loyalty_management/images/loyalty_analytics_filter_deleted_contacts_trending_node.png)
    3. Save your changes.
8. Click **Run Dataflow**.

After the dataflow run completes, open the LoyaltyMemberCurrencyTrending datasets and verify if the records are deleted.