MacBook-Pro:lib me$ sudo rm -rf python2.6
rm: python2.6: Operation not permitted
I tried with sudo, without sudo. Not sure why the operation is not permitted.
It is due to System Integrity Protection, introduced by Apple on OSX versions El Capitan and onwards.