Old updates and disk space
Is it possible to get a list of what can be deleted, or improve autoupdate, to delete older data that is kept after an update?
I see a lot of old folders in AppData\Local\LINQPad for many, many versions for LINQPad, DataContextCache, ILSpy and Logs. What is needed and what can be deleted?
Thanks!
Comments
All the subfolders inside %localappdata%\LINQPad can be deleted with the following caveats:
drivers
will delete any third-party drivers, so you will have to download them againMSALCache
will delete saved OAuth tokens, so you will have to re-authenticate(
NuGet.FW46` for LINQPad 5) will delete LINQPad's package cache, so you'll have to restore packages when promptedsessions
will delete files that are shelved when you close LINQPad without savingThe other folders are for logs and caches. If deleted, LINQPad will automatically rebuild them as required.
Hopefully I'm not hijacking this thread, and I realise this is not really a LinqPad issue, but thought I would ask here.
How do you easily get rid of nuget packages that you don't think you need.
A lot of these packages have been downloaded by LinqPad and as a long time LinqPad user I was used to the way it worked with LinqPad5 where the NuGet.FW46 folder seems to contain everything including the actual dll's and removing a package in LinqPad removes everything and hence frees up space.
Didn't initially realize that the later versions of LinqPad worked differently in that 'NuGet.NetCore' folder only contains small txt and xml files and the actual dlls are in (in my case) C:\Users\Stephen.nuget\packages , (which is where Visual Studio also downloads them)
E.g
So 'Delete package from LinqPad's cache' deletes the tiny text files but leaves the actual dlls behind.
An example of the sort of thing I am trying to avoid is that currently I have 27 different versions of Microsoft.EntityFrameworkCore installed. They only account for a couple of hundred megabytes, but that is just an example and I'm sure I don't need half of the files in that folder.
Anyone else have this issue and if so how do you handle this?
LINQPad can't really delete files from the shared cache because it can't know that they're not also used by other applications such as Visual Studio, Rider, Code or command-line tools. Also, if LINQPad attempted to delete files from the cache and some were in use, the folders would end up partially populated, meaning that automatic package restoration might fail.