Deleting windows 7 Program Files folder

indian_samosa

Disciple
Nov 2, 2007
89
6
0
44
Had installed windows 7 sometime back and then removed it from the bootmenu and returned back to windows xp.Had installed it in "D" drive.Now I am running out of space on it and there is this "Program files" folder which 7 had created which is using some 7 GB space.If I try to delete it...it says cannot delete access denied.

How do I go about deleting it by using XP ? :S
 

kekerode

Adept
Jul 29, 2009
581
11
82
this is permission issue. run this command (with path changed)

CACLS D:\programs /E /T /C /G "Administrators":F

this will give full permission to "Administrators" group to folder D:\programs

then try to delete.
 

indian_samosa

Disciple
Nov 2, 2007
89
6
0
44
Thanks for the help ...

But nothing happens...all it shows is the usual command cacls help thing.

So I downloaded security tab for windows xp .... and using ownership thing (trial and error) on those files and folders.Seems to work....but taking a bit of time to individually mark folders and delete them.