What is the full path of the folder that you are wanting to do this on?
If this is a protected operating system file, then you may need to do this from a
command prompt at startup instead using your Windows 7 installation disc.
You might also try
Unlocker on it, to see if you may be able to delete it afterwards.