This is an old revision of the document!
See also Delete Temporary Files
See also Delete Windows Folders That Are Too Long
Take ownership as the logged in user, usually as an administrator:
takeown /F <foldername> /R /D y
Reset the ACLs:
icacls <foldername> /T /C /Q /RESET