Folder_Name =r'Downloads'           # Provide the path of the folder.
days=1                                            # Provide the number of days

import os
import time
import shutil
import subprocess
import ctypes


class disable_file_system_redirection:
    _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection
    _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection
    def __enter__(self):
        self.old_value = ctypes.c_long()
        self.success = self._disable(ctypes.byref(self.old_value))
    def __exit__(self, type, value, traceback):
        if self.success:
            self._revert(self.old_value)

with disable_file_system_redirection():
    user_list = os.popen('dir "C:\\users"  /b /o:gn').read().strip().splitlines()
    print("List of users :")
    for i in user_list:
        print(i)

def remove(PATH):
    print("Clearing "+PATH+' Started...')
    now = time.time()
    cmd = 'dir "'+PATH+'" /s /b /o:gn'
    files = os.popen(cmd).read().strip().splitlines()
    if len(files) > 0:
        for i in files:
            if os.path.isfile(i):
                if os.stat(i).st_mtime < (now - (days * 86400)):
                    os.remove(i)
                    print(i+' removed successfully...')
            elif os.path.isdir(i):
                pass
    else:
        print("No Folders or Files found in "+PATH)

for k in user_list:
    paths = 'C:\\Users\\'+k.strip()+'\\'+Folder_Name
    if os.path.exists(paths):
        remove(paths)
    else:
        print(paths+" doesn't exists")
    