title: How to Remove A Non-Empty Directory that Requires Admin Access in Python
body: <p>I currently am trying to remove a folder through python that is Non-Empty and needs admin access. I have tried using shutil.rmtree and changing the onerror to allow admin access, but then non-empty error flag is thrown. And when I address that error by adding ignore_erros=True, the admin access error stops the files from actually being deleted. How would I go about deleting these files? The files being created are from Tensorflow's premade estimators and are taking up a lot of space on my computer as I have a program that is constantly rerunning new models. I am trying to add a script to this program that deletes the temp files after each model has been trained and overall accuracy has been collected.</p>