> For the complete documentation index, see [llms.txt](https://docs.reflag.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.reflag.com/product-handbook/concepts/environment.md).

# Environment

### Definition

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

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

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

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

You can create or delete any environment at any time, except the Production environment.

{% hint style="danger" %}
Deleted environments cannot be restored, and all collected data for that environment will essentially be lost.
{% 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](/product-handbook/concepts/user.md) and [companies](/product-handbook/concepts/company.md),
* Learn how to [manage environments ](/product-handbook/creating-and-managing-apps/environments.md)within Reflag UI.


---

# 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://docs.reflag.com/product-handbook/concepts/environment.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.
