Search…
Uninstall

Prerequisites

  1. 2.
    Docker
  2. 3.
  3. 4.
    AWS CLI

Uninstalling Cortex

1
# spin down the cluster
2
cortex cluster down
3
4
# uninstall the CLI
5
sudo rm /usr/local/bin/cortex
6
rm -rf ~/.cortex
Copied!
If you modified your bash profile, you may wish to remove source <(cortex completion bash) from it (or remove source <(cortex completion zsh) for zsh).

Cleaning up AWS

Since you may wish to have access to your data after spinning down your cluster, Cortex's bucket and log groups are not automatically deleted when running cortex cluster down.
To delete them:
1
# set AWS credentials
2
export AWS_ACCESS_KEY_ID=***
3
export AWS_SECRET_ACCESS_KEY=***
4
5
# identify the name of your cortex S3 bucket
6
aws s3 ls
7
8
# delete the S3 bucket
9
aws s3 rb --force s3://<bucket>
10
11
# delete the log group (replace <cluster_name> with the name of your cluster, default: cortex)
12
aws logs describe-log-groups --log-group-name-prefix=<cluster_name> --query logGroups[*].[logGroupName] --output text | xargs -I {} aws logs delete-log-group --log-group-name {}
Copied!
If you've configured a custom domain for your APIs, you may wish to remove the SSL Certificate and Hosted Zone for the domain by following these instructions.
Last modified 10mo ago