#!/usr/bin/python
import os
for root , dirs, files in os.walk(r'E:\.m2\repository'):
for name in files:
if name.endswith(".repositories") or name.endswith(".sha1"):
os.remove(os.path.join(root, name))
print ("Delete File: " + os.path.join(root, name))
os.system("pause")
import os
for root , dirs, files in os.walk(r'E:\.m2\repository'):
for name in files:
if name.endswith(".repositories") or name.endswith(".sha1"):
os.remove(os.path.join(root, name))
print ("Delete File: " + os.path.join(root, name))
os.system("pause")