> For the complete documentation index, see [llms.txt](https://documentation.freshpaint.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.freshpaint.io/reference/faqs/if-a-user-re-installs-my-app-will-freshpaint-generate-a-new-device-id.md).

# If a user re-installs my app, will Freshpaint generate a new device ID?

Yes, if a user deletes and re-installs your iOS or android app, events that are tracked with Freshpaint will have a different device ID after the re-install. Once the user logs in, you can [provide the user's identity to Freshpaint](/readme/setting-up-identify.md) to associate events from this installation with the rest of the user's history.

To generate a new device ID, call the [`reset()`](/reference/developer/freshpaint-ios-sdk-reference.md#reset) method on the Freshpaint SDK for your platform. For example this may be useful if a user logs out and logs in to a different account.


---

# 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:

```
GET https://documentation.freshpaint.io/reference/faqs/if-a-user-re-installs-my-app-will-freshpaint-generate-a-new-device-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
