> For the complete documentation index, see [llms.txt](https://documentation.crossengage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.crossengage.io/data-and-engagement-platform/data-management/data-management-with-data-feeds/users/update-or-delete-a-user-trait-via-file-upload.md).

# Update or Delete a User Trait via File Upload

If you wish to change information about a User after they have been uploaded to the CrossEngage Platform, you can upload a JSON file with the new value of the respective trait. To identify the User, please use the `id` field, so CrossEngage can identify the correct User to update.

If you rather wish to delete a trait for a user, upload a user feed data file with `xng-delete-trait` as the value of the trait that should be deleted for that user.

{% hint style="warning" %}
Note that xng-delete-trait works only for string fields.
{% endhint %}

```
[
 {
  "id": "123786543",
  "email": "james.dean@yahoo.com",
  "businessUnit":"crossengage",
  "zipCode":"xng-delete-trait"
 }
]
```

{% hint style="info" %}
When updating User traits, since no change is being made to the Structure of the data, only the value, it is not necessary to Upload a header file.
{% endhint %}

{% hint style="warning" %}
If `email` and/or `businessUnit` are empty or missing from the import file, the importer will update them as empty and overwrite whatever there might have been saved before in the user profile.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/data-management/data-management-with-data-feeds/users/update-or-delete-a-user-trait-via-file-upload.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
