- #Delete cab files in temp folder windows 10#
- #Delete cab files in temp folder Pc#
- #Delete cab files in temp folder Offline#
- #Delete cab files in temp folder free#
- #Delete cab files in temp folder windows#
#Delete cab files in temp folder windows#
I booted a Linux live drive, and determined that the Windows folder was the culprit even though Windows claimed it had about 30GB of stuff in it, there was a Temp subfolder with ~140GB of crap in it.
#Delete cab files in temp folder free#
The amount of space in use by all the top level folders (as shown by right-clicking and bringing up the properties) added up to just a little over 100GB, so there should've been a ton of free space.
After several rounds of deleting old stuff and running Windows Disk Cleanup, the problem continued to come back every few weeks. The system has a 250GB SSD, and she kept getting into a state where there was 0 bytes free (causing the system to lose its mind). This started out as an exercise to figure out why she kept running out of disk space. Using the /ResetBase parameter together with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 10 or later removes all superseded versions of every component in the component store.įrom an elevated command prompt, run: Dism.My wife's desktop is having a weird issue, and having been mostly out of the Windows world for a while I'm appealing to the collective gerbil wisdom for ideas here. Use the /ResetBase switch with the /StartComponentCleanup parameter Using the /StartComponentCleanup parameter of Dism.exe on a running version of Windows 10 or later gives you similar results to running the StartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.įrom an elevated command prompt, run: Dism.exe /online /Cleanup-Image /StartComponentCleanup For more information, see DISM Operating System Package Servicing Command-Line Options. The /Cleanup-Image parameter of Dism.exe provides advanced users more options to further reduce the size of the WinSxS folder. The StartComponentCleanup task can also be started from the command line. Under Selected Item, click Run schtasks.exe /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup" For more information, see Start Task Scheduler.Įxpand the console tree and navigate to Task Scheduler Library\Microsoft\Windows\Servicing\StartComponentCleanup. If Task Scheduler is not open, start the Task Scheduler. Run the StartComponentCleanup task in Task Scheduler to clean up and compress components If you choose to run this task, the task will have a 1 hour timeout and may not completely clean up all files. When run automatically, the task will wait at least 30 days after an updated component has been installed before uninstalling the previous versions of the component. The StartComponentCleanup task automatically cleans up components when the system isn't in use. In Windows 10 and Windows Server 2016, you have a number of ways to start the cleanup of the component store, which use a combination of package deletion and component compression to clean up the WinSxS folder: Task Scheduler
#Delete cab files in temp folder Pc#
To learn about finding the size of your WinSxS folder, see Determine the actual size of the WinSxS folder.ĭeleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.
#Delete cab files in temp folder Offline#
You can also reduce the size of a Windows image using some of the same techniques, as discussed in Reduce the Size of the Component Store in an Offline Windows Image. After a period of time, these older components are automatically removed from the installation. Previous versions of some components are kept on the system for a period of time, allowing you to rollback if necessary.
Windows also uses internal processes to reduce the size of the WinSxS folder, such as uninstalling and deleting packages with components that have been replaced by other components with newer versions. Starting with Windows 10 and Windows Server 2016, the operating system automatically reduces the size of the WinSxS folder by using methods similar to the ones described in this topic. For more information about the WinSxS folder, see Manage the Component Store.
#Delete cab files in temp folder windows 10#
This topic is about the different ways to reduce the size of the WinSxS folder on a running Windows 10 or Windows 11 installation.ĭon't delete the WinSxS folder, you can instead reduce the size of the WinSxS folder using tools built into Windows.