Uninstalling Self-Hosted Standard Edition

Uninstall Standard Edition from your cluster.

Before you uninstall, take a backup of your resources if required. For more information, see Backing up and restoring.

Note: The stanctl cluster delete command uninstalls the Standard Edition and removes all the data. If you want to keep the data, use the --keep-data flag.
  • To uninstall and remove your data, run the following command. In a multi-node cluster, run this command on node0 (instana-0).

    stanctl cluster delete
    

    At the prompt, confirm the deletion.

    ? Do you want to delete the cluster? This will delete data in all storage volumes and config directories. (y/N)

  • To uninstall but keep your data, run the following command:

    stanctl cluster delete --keep-data
    

    At the prompt, confirm the deletion.

    ? Do you want to delete the cluster? (y/N)

The uninstallation does not delete the instana.yaml configuration file that is in the $HOME/.stanctl/ directory. If you reinstall Instana on the same host, the installation uses the configuration values from the existing $HOME/.stanctl/instana.yaml file. If you want to use the host for a fresh installation, remove the instana.yaml file before you reinstall.

In a multi-node cluster, the instana.yaml file is on node0 (instana-0). If you want to do a fresh installation, you must remove the instana.yaml file on node0 (instana-0) and then reinstall.

Use the following command to remove the instana.yaml file:

rm $HOME/.stanctl/instana.yaml