# Environment

### Definition

Environments, in Reflag, serve to fully segregate the collected data. In practice, this means that any data received by our [public API](https://docs.reflag.com/api/public-api/public-api-reference) in the "*Production*" environment for example, will be completely different from the data collected in other environments. Specifically, this pertains to:

* [Companies](https://docs.reflag.com/product-handbook/concepts/company)' details that have been collected
* [Users](https://docs.reflag.com/product-handbook/concepts/user)' details
* [Track events](https://docs.reflag.com/product-handbook/concepts/event)
* Collected [feedback](https://docs.reflag.com/product-handbook/concepts/feedback)
* [Feature events](https://docs.reflag.com/product-handbook/concepts/feature-events)

Aside from the collected data itself, there are a number of environment-specific settings and behaviors that can be configured on [features](https://docs.reflag.com/product-handbook/concepts/feature) and [feature views](https://docs.reflag.com/product-handbook/feature-views). Additionally, any [targeting rules](https://docs.reflag.com/product-handbook/concepts/targeting-rules) used within the app use environment-specific data.

Each new [app](https://docs.reflag.com/product-handbook/concepts/app), comes with three predefined environments: **Production**, **Staging** and **Development**.

You can create or delete any environment at any time, except the Production environment.&#x20;

{% hint style="danger" %}
Deleted environments cannot be restored, and all collected data for that environment will essentially be lost.&#x20;
{% endhint %}

The main use case for environments is to test if data is coming through as expected and if features are set up correctly on local or staging environments before releasing to production.

### Next steps

* Learn about [users](https://docs.reflag.com/product-handbook/concepts/user) and [companies](https://docs.reflag.com/product-handbook/concepts/company),
* Learn how to [manage environments ](https://docs.reflag.com/product-handbook/creating-and-managing-apps/environments)within Reflag UI.
