Uninstalling 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.
If you only have Sensor installed, you can skip this step
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 table in the Datafy app.
This ensures that autoscaling isn't activated for any new volumes while you are preparing for uninstalling.

Identify Managed Volumes
In the All Volume table in the Datafy app, find all of the relevant volumes by filtering the status "Autoscaling active" in the dashboard

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 Reports tab.

Uninstall Datafy
Uninstalling AutoScaler when there are managed volumes can lead to loss of access to the data stored on those volumes. Always turn off autoscaling before uninstalling Autoscaler.
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 | shYou can check which version is installed on your instance with the command:
/usr/local/datafy-agent/bin/datafy-agent --versionKubernetes Cluster
You should use the same method to uninstall as you did to install
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:
Remove the ARN from the Permission section of the account settings.
Delete the role from your AWS account, by deleting the CloudFormation stack or Terraform module.
Last updated
Was this helpful?
