Hello i am trying to delete a directory which is like a temporary file storage. however it does not work and keeps throwing the same erros
directory = ("C:\\Users\\Bradley\\Desktop\\Log in system\\TempFiles")
os.remove(directory)
here is the error:
PermissionError: [WinError 5] Access is denied:
'C:\\Users\\Bradley\\Desktop\\Log in system\\TempFiles'