---
title: Decommission minio
short: Decommission minio
!!! warning
Decommissioning Minio is a hazardous action because you may lose all your data uploaded using direct file upload. For more information or support, contact the Heartex team.
To decommission Minio, do the following:
To configure Persistent Storage, follow the instructions in Set up persistent storage.
Add MINIO_MIGRATION: true into global.extraEnvironmentVars section of your ls-values.yaml file:shell global: extraEnvironmentVars: MINIO_MIGRATION: true
Redeploy a release by following the steps from Upgrade Label Studio Enterprise.
Run shell in lse-app pod:shell kubectl exec -ti deploy/<YOUR_RELEASE_NAME>-lse-app -c lse-app -- bash
Copy data from Minio to a persistent storage:shell JSON_LOG=0 python3 $LSE_DIR/label_studio_enterprise/manage.py minio-migrate
!!! warning
Minio service will be deleted in the next step.
Export in your project.bucket/volume by project_id/export.!!! note
For more information or support, contact the Heartex team.
Add the following map to your ls-values.yaml file:yaml minio: enabled: false
Remove MINIO_MIGRATION: true from global.extraEnvironmentVars section of your ls-values.yaml file.
Redeploy a release by following steps from Upgrade Label Studio Enterprise.