Deleting a custom attribute from your Personalize project helps maintain an organized set of attributes and ensures that only relevant data is tracked.
This guide walks you through the steps required to delete non-referenced and referenced custom attributes from your project, allowing you to clean up unused or redundant attributes.
Note: Users with Owner and Member access to a Personalize project can delete existing custom attributes.
Note: For this guide, we have assumed that you have already created a Personalize project. If not, please follow this guide and create a project in Personalize.
A non-referenced attribute in Contentstack Personalize is a custom attribute that is not currently being used in any audience rules or segmentations within your project.
To delete an existing non-referenced custom attribute, log in to your Contentstack account and perform the following steps:

You will get a success message after the custom attribute is deleted from Personalize.
A referenced attribute in Contentstack Personalize is a custom attribute that is currently being used in audience rules or segmentations within your project.
This means that the attribute is actively involved in defining the conditions or criteria for targeting specific audiences with personalized experiences.
As a result, deleting a referenced attribute requires additional steps to ensure that existing audience definitions and personalization strategies are not disrupted. This involves first removing the attribute from any audience rules where it is used, and then proceeding with its deletion.
To delete an existing referenced custom attribute, log in to your Contentstack account and perform the following steps:

Note: To delete custom attributes from a referenced audience, ensure that the experience associated with that audience is in ‘Draft’ status.

Warning: Deleting a custom attribute might affect the Audience segmentation, experience performance, and the data for that attribute will no longer be collected from that point onward.
You will get a success message after the custom attribute is deleted from Personalize.
Additional Resource: You can use the Personalize Management API to create, edit, delete, and retrieve all existing attributes.