Guys, Have a look...

File.Delete("C:\\hi.txt");

This function is used for deleting a specific file right? But I m unable to delete it?
Is there my little mistake?

If you're using Vista or W7 you may need to give your application administrator privileges to modify something in the root directory like that.

don't place files in your root directory try to create a separate folder for placing the files or place them in you project folder.. Or use any other directory instead

Any alternative or how to delete or give permission to delete a file?

abelazm do u know how to give permission? to allow delete file...as I m stucked in giving permission to delete a file.

Place the file to be deleted in a folder. Give all users full control to that folder. This will solve the issue.

Sorry, I m newbie in asp.net..how to give full control to all users?who users are these?I try put ASPNET.But it doesnt work.

check this link may be helpful for giving permissions

Erm , I m able to solve already. When I put the code above response.end();..
any 1 know why?

This is not extension.This is a function File.Delete()..