On my local machine, I am trying to delete a web site as follows and fail in both approaches. Rebooting local machine does not help.

  1. Delete Web site via Computer Management Console in IIS.
  2. Delete web site folder under c:\inetpub\wwwroot\mysite

I get the following error dialog

Cannot delete mysite: Access is denied.

Make sure the disk is not full or write-protected and that the file is not currently in use.

link|improve this question

61% accept rate
feedback

migrated from stackoverflow.com Sep 20 '10 at 22:20

This question came from our site for professional and enthusiast programmers.

1 Answer

Stop the IIS service, close any web browsers and try deleting. Else use Unlocker to unlock the files and delete it.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.