1
2 import os
3 import stat
4 def rmv_rof(file_name):
5 '''Remov Read Only Files'''
6 if os.path.exists(file_name):
7 os.chmod(file_name, stat.S_IWRITE)
8 os.remove(file_name)
9 else:
10 print('The file does not exist.')
11 rmv_rof('file_name_here')
12