import shutil import os shutil.rmtree(os.path.join('..', 'tools', 'Python27_32')) shutil.rmtree(os.path.join('..', 'tools', 'gnu_gcc'))