> For the complete documentation index, see [llms.txt](https://archivedocs.stackstate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://archivedocs.stackstate.com/self-hosted-setup/data-management/clear_stored_data.md).

# Clear stored data

The data in StackState is divided into four different sets:

* Elasticsearch data
* Kafka Topic data
* StackGraph data
* Metrics data

With this much data to store, it's important to have the means to manage it. There is a standard 30 days data retention period set in StackState. This can be configured according to your needs using the StackState CLI. Find out more about [StackState data retention](/self-hosted-setup/data-management/data_retention.md).

## Clear data manually

To clear stored data in StackState running on Kubernetes, it's recommended to run a clean install:

1. [Uninstall StackState](/self-hosted-setup/uninstall.md#un-install-the-helm-chart)
2. [Remove all PVC's](/self-hosted-setup/uninstall.md#remove-remaining-resources)
3. Install StackState again using the same configuration as before, on [Kubernetes](/self-hosted-setup/install-stackstate/kubernetes_openshift/kubernetes_install.md#deploy-stackstate-with-helm) or [OpenShift](/self-hosted-setup/install-stackstate/kubernetes_openshift/openshift_install.md#deploy-stackstate-with-helm).
