# Clean-up

Clean-up

Remove front-end repository in GitHub:

jx delete repo --github --org "ruzickap" --name="front-end" --batch-mode="true"
jx delete repo --github --org "ruzickap" --name="environment-mylabs-production" --batch-mode="true"
jx delete repo --github --org "ruzickap" --name="environment-mylabs-staging" --batch-mode="true"

Delete k8s cluster in AWS:

kops delete cluster --state s3://${USER}-kops-state-jenkinsx ${USER}-jx-k8s.mylabs.dev --yes

Delete S3 bucket:

aws s3api delete-bucket --bucket ${USER}-kops-state-jenkinsx --region eu-central-1

Delete default jx directory:

rm -rf ~/.jx

Remove tmp directory:

rm -rf tmp

Remove other files:

rm demo-magic.sh README.sh &> /dev/null

Remove default kubeconfig:

rm ~/.kube/config