folder = '/home/rv/Desktop/test'
os.chdir(folder)
for somefile in os.listdir('.'):
    st = os.stat(somefile)
mtime = st.st_mtime
if mtime < one_minute_ago:
    pass
Python: Deleting files of a certain age