I started up "Deep Learning AMI (Ubuntu 18.04) Version 27.0"; it comes with a 90GB disk, which seemed plenty, but over 60GB of that was already used. I only need python3, pytorch, cuda.
I found 30GB was inside ~/anaconda3/envs:
3.9G aws_neuron_mxnet_p36
2.2G aws_neuron_pytorch_p36
1.9G aws_neuron_tensorflow_p36
2.5G chainer_p27
1.2G chainer_p36
2.1G mxnet_p27
2.1G mxnet_p36
729M python2
866M python3
2.5G pytorch_p27
2.6G pytorch_p36
2.2G tensorflow2_p27
2.1G tensorflow2_p36
2.3G tensorflow_p27
1.8G tensorflow_p36
31G total
Is it safe to just rm, say, the tensorflow and mxnet directories?
conda env list gives the same list. Is it better to do e.g. conda env remove tensorflow2_p27.
Are there likely to be any side effects of removing those packages? Is there a way to make sure nothing else depends on them before removing them?