Cannot Delete Directories on External USB after Robocopy

I'm sure this is a simple fix (I HOPE), but I just can't figure it out.

I have a Windows 2012 servcer here, latest patches and updates. I ran the following commands to copy local drives to an external USB 5T dsk:
robocopy C:\ G:\APOLLO2\C-DRIVE /mir /copyall /dcopy:T /R:1 /W:5 /MT:8 /ZB /log:"c:\Robocopy-C.log" /tee
robocopy D:\ G:\APOLLO2\D-DRIVE /mir /copyall /dcopy:T /R:1 /W:5 /MT:8 /ZB /log:"d:\Robocopy-D.log" /tee
robocopy E:\ G:\APOLLO2\E-DRIVE /mir /copyall /dcopy:T /R:1 /W:5 /MT:8 /ZB /log:"e:\Robocopy-E.log" /tee

Now I want to clean up everything in G:\APOLLO2 and remove it....however anytime I try to use rd /s or del /s I'm seeing.

G:\APOLLO2>rd /s /q C-DRIVE
C-DRIVE\SYSTEM~1\REMOTE~1 - Access is denied.
C-DRIVE\SYSTEM~1\SRM - Access is denied.

.Trash-0\expunged\133334~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~\APPLIC~1\MICROS~1\WINDOW~1\MSScan\WelcomeScan.jpg - Access is denied.
.Trash-0\expunged\133334~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~1\APPLIC~\APPLIC~1\PACKAG~1\{743FC~1.231\packages\VISUAL~1 - The directory is not empty.

Permissions are for Administrators FULL and Also owned by Administrators - Its the only ID on the box.

I'm at a loss - I REALLY don't want to format the disk there's 3+ TB Of other data I needed out there.

Thanks in advance.
George R. KasicaLead Systems AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Travis MartinezStorage EngineerCommented:
Try another robocopy to delete the folder by mirroring an empty one:

robocopy C:\Temp G:\APOLLO2\C-DRIVE\SYSTEM~1\ /MIR /R:3 /MT:8

That should clear out the directory, quickly and leave just the root to be removed.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
George R. KasicaLead Systems AdministratorAuthor Commented:
Thank you very much. What changes should I make to robocopy to avoid this in the future? Though now I have a “fix” in any case.
0
Travis MartinezStorage EngineerCommented:
To be fair brother I'm not sure which switch did it; however, the following "/copyall /dcopy:T" isn't needed because of the /MIR option.  It will copy/keep all of the file attributes without specifying those two you have in the command line.
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage

From novice to tech pro — start learning today.