Skip to content

Uninstall Platforma

guidemaintain-uninstalling

How do I remove Platforma, and what stays?

The removal deletes the BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary and the parts that the installation made. The installers, the Terraform modulesTerraform modules — The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster. Glossary and the Helm chart keep the results and the database. Thus a mistake does not delete them: you delete them later, on purpose. In Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary, you delete the data folder yourself, as the last step. In each case, make a backup first.

Before you remove Platforma

  1. Make a backup of the database: see Make a backup now. Copy it out of the installation: the backup files are in the primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary.

  2. Keep the master secret outside the installation: without it, a kept database cannot read the credentials that it stores. See What to keep.

  3. Write down the storage of the installation, when a new installation will use it again: see Kept data and reuse.

Remove Platforma

Tool: CloudFormation template

Delete the CloudFormation stack. The stack removes Platforma, the cluster and the network. It keeps these parts, and you delete them later, when you do not need them:

  • the bucket of the primary storage, with the results of all projects and the database backups;
  • the workspaceworkspace — The storage where the Backend and all jobs keep the working files of running jobs. The Backend and the jobs use it at the same time. In Kubernetes, it is a network file system; in Single Server mode, it is a folder on the server. Glossary;
  • the volumes of the database (all projects) and the logs;
  • the master secret.

For the steps, the rights, what stays and the commands that delete it, see Uninstall an installer installation.

What stays

  • AWS installer: the bucket, the workspace, the volumes of the database and the logs, and the master secret. The log groups of the stack and the DNS validation record also stay.

  • Google Cloud installer: by default, the bucket, the workspace, the database disk and the VPC network. After a teardown with DELETE_ALL_DATA=true, no data stays. After each teardown, the master secret, the service account of the installer and the Cloud DNS zone stay.

    For the installers, see What stays and how to delete it.

  • Terraform modules: the bucket of the primary storage, the workspace and the database volume, whose reclaim policy is Retain. The logs volume stays only with disks.logs.reclaim_policy = "Retain"; the default is Delete, and a new installation works the same with a new, empty logs volume. On Google Cloud, a kept Filestore instance works again only when the network of the installation is kept too. On AWS, the image caches also stay: the ECR repositories <name>-software/milaboratories/pl-containers and <name>-backend/milaboratories/platforma, which ECR made at the first pull of an image. Delete them with aws ecr delete-repository --repository-name <repository> --force.

  • Helm chart: the claims of the database, the logs and the workspace (helm.sh/resource-policy: keep), and the volumes that they hold. A new installation with the same release name in the same namespace gets the same data. When you delete the claims, the reclaim policy of their StorageClass decides whether the volumes are deleted too.

  • Single Server mode: what you do not delete in the steps; a bucket of the primary storage always stays.

To use the kept data again, see Kept data and reuse. To delete it, delete the bucket, the file system and the volumes in the console of the cloud. Do this only after you copied the backup and the results that you need. The bucket holds the results of all projects, and the database volume holds all projects. With the Terraform modules on AWS, find the volumes by the tag platforma-installation:

Terminal window
aws ec2 describe-volumes --filters Name=tag:platforma-installation,Values=<name> \
--query 'Volumes[].[VolumeId,Tags[?Key==`platforma-component`].Value|[0]]' --output text
aws ec2 delete-volume --volume-id <VOLUME_ID>

Next