This article has been archived. It is offered "as is" and will no longer be updated.
When you attempt to delete an image file from the My Pictures folder or from another folder, you may receive the following error message:
Cannot delete Filename. Access is denied. The source file may be in use.
This behavior can occur if you attempt to delete a large image file while the image is being drawn in the Image Preview window.
To work around this issue, wait until the image is drawn in the Image Preview window, or disable Web view. To disable Web view:
On the Tools menu, click Folder Options.
On the General tab, click Use Windows classic folders option.
After you delete the image file, you can re-enable Web view by following the previous steps, but click Enable Web content in folders in step 2.
If Web view is enabled and you open the My Pictures folder or any customized folder that uses the Image Preview template, selected images are displayed in the Image Preview window. While the image is being drawn, a "Generating preview..." message is displayed in the Image Preview window and the file is locked and cannot be deleted.