I run into this problem a lot when trying to delete network folders. Here is a way to prevent the problem.
Go to Control Panel>Folder >Options>View>Checkmark 'always show icons, never thumbnails'. Click Ok.
You should be able to delete those folders now.
On Windows XP go to the same location and deselect 'Do not cache thumbnails'.