How to delete windows.old / locked folder

Solution by MHJ Ali:
Click Start> All Programs> Accessories>>right-click “Command Prompt”, and then click Run as administrator.

run following 3 commands on command prompt

takeown /F d:Windows.old* /R /A
cacls d:Windows.old*.* /T /grant administrators:F
rmdir /S /Q d:Windows.old