arrow-left-from-bracketUninstalling Datafy

Uninstalling Datafy is just as simple as the initial installation. Except for the preparation, the following steps are the same for uninstalling Sensor or AutoScaler.

Prepare for Uninstall

If you have AutoScaler installed, before you can uninstall, you must turn off autoscaling for all volumes managed by Datafy. Turning off autoscaling returns your volumes to their original provisioned size and removes the virtualization layer managed by Datafy. This is critical for ensuring access to your data after Autoscaler is uninstalled.

circle-info

If you only have Sensor installed, you can skip this step

1

Turn Off Autoscaling Rules

If you have autoscaling rules active in your account, turn off any rules relevant to the instances you wish to uninstall from, in the Autoscale Rules tablearrow-up-right in the Datafy app.

This ensures that autoscaling isn't activated for any new volumes while you are preparing for uninstalling.

2

Identify Managed Volumes

In the All Volume tablearrow-up-right in the Datafy app, find all of the relevant volumes by filtering the status "Autoscaling active" in the dashboard

3

Turn off Autoscaling

Turn off the toggle in the "AutoScale" column for all of the relevant volumes.

Similarly to the initial migration process when autoscaling was turned on, this stage can take time, dependent on the size of the volume. You track the progress in the All Volumes table, or in the Optimization Actions log in the Reportsarrow-up-right tab.

Uninstall Datafy

circle-exclamation

Datafy can be uninstalled in the same ways it was installed, by substituting install from the original install command with uninstall. The version supplied should match the version installed.

EC2 Instance

curl -sSfL https://agent.datafy.io/uninstall\?version=$VERSION | sh
circle-info

You can check which version is installed on your instance with the command:

 /usr/local/datafy-agent/bin/datafy-agent --version

Kubernetes Cluster

You should use the same method to uninstall as you did to install

circle-info

You can check which version is installed on your cluster by checking the image tag of the datafy-installer DaemonSet

Remove IAM Role

After uninstallation, the IAM role configured during the initial setup should be removed. This can be done in one of the following ways:

  1. Remove the ARN from the Permission section of the account settingsarrow-up-right.

  2. Delete the role from your AWS account, by deleting the CloudFormation stack or Terraform module.

Last updated

Was this helpful?