Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

1 Answer 1

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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