Thursday, August 1, 2013

force delete folder

Some more searching and I have the solution. After following the change owner recipe:
  1. Right-click on folder -> Properties
  2. Security Tab
  3. Click on Advanced button
  4. Owner tab
  5. Edit.. button
  6. select Administrators in 'Change owner to', check 'replace owner on subcontainers and objects'..this might take a while
  7. Open cmd.exe as administrator
  8. type 'cacls l:\messedUpFolder /T /e /g Administrators:f' ...this might take a while
  9. rmdir /S l:\messedUpFolder
and thats it.