What are the App_Data/preview/xxx.config Files For?
There are hundreds of MB of files in our App_Data/preview folder. They are .config files but appear to be copies of old and current web pages. Why do they exist? Can we delete them? How can we keep them from wasting precious disk space?
They are created when pages are previewed, regarding clean up possibly some kind of scheduled batch file / powershell job that removes anything older than a day?
I've just had a play with this on our dev box, and it looks like they preview files should get deleted. I've had a play on a 4.5.2 test site we're running, and if I fill the preview folder up with copies of the file that's in there, then do a preview, all of the other files get deleted. It could be a permissions issue on your hosting.
Can you check if the user that the application pool is running under (typically Network Service) has Modify permissions for the app_data/preview folder? If it doesn't, it wouldn't be able to delete the old files when it creates the new preview file. If it doesn't, assign it the permission, and then try and do a preview, hopefully it should then delete the other preview files.
What are the App_Data/preview/xxx.config Files For?
There are hundreds of MB of files in our App_Data/preview folder. They are .config files but appear to be copies of old and current web pages. Why do they exist? Can we delete them? How can we keep them from wasting precious disk space?
Connie,
They are created when pages are previewed, regarding clean up possibly some kind of scheduled batch file / powershell job that removes anything older than a day?
Regards
Ismail
Thanks for confirming this. I see this as a major bug and added it to Codeplex. Hopefully we'll see something changed in a future version.
Connie
Hi Connie,
I've just had a play with this on our dev box, and it looks like they preview files should get deleted. I've had a play on a 4.5.2 test site we're running, and if I fill the preview folder up with copies of the file that's in there, then do a preview, all of the other files get deleted. It could be a permissions issue on your hosting.
Can you check if the user that the application pool is running under (typically Network Service) has Modify permissions for the app_data/preview folder? If it doesn't, it wouldn't be able to delete the old files when it creates the new preview file. If it doesn't, assign it the permission, and then try and do a preview, hopefully it should then delete the other preview files.
Hi, I made the permissions changes but still have hundreds of MB files in here (not deleted when previewing)...
Am I able to manually remove these?
Thanks,
------------
Update: Backed up, deleted, site still there.
is working on a reply...