diff --git a/scripts/run.py b/scripts/run.py
index <HASH>..<HASH> 100755
--- a/scripts/run.py
+++ b/scripts/run.py
@@ -2075,7 +2075,9 @@ def wipe_test_state(test_root_dir):
             if ("Rsandbox" in s):
                 rsandbox_dir = os.path.join(d, s)
                 try:
-                    shutil.rmtree(rsandbox_dir)
+                    if sys.platform == "win32":
+                        os.system(r'C:/cygwin64/bin/rm.exe -r -f "{0}"'.format(rsandbox_dir))
+                    else: shutil.rmtree(rsandbox_dir)
                 except OSError as e:
                     print("")
                     print("ERROR: Removing RSandbox directory failed: " + rsandbox_dir)
on windows, use cygwin rm.exe to remove sandbox dir because shutil.rmtree doesn't work when path names are greater than <I> characters.