
del /f /s /q Download - Deletes the Download folder of the SoftwareDistribution directory with.cd %Windir%\SoftwareDistribution - Switches to the SoftwareDistribution directory of the Windows installation.net stop wuauserv - This stops the Windows Update service.Run the following commands and hit enter after each line:.Accept the UAC prompt that Windows displays.Hold down the Shift-key and the Ctrl-Key before you select the cmd.exe result.Tap on the Windows-key to bring up the Start Menu.While you can type the following commands on an elevated command prompt manually, you may create a small batch file as well toautomate the process. You may purge the Windows Update cache from the command line as well. Clear the Windows Update cache from the command line This can lead to Gigabyte large downloads. Please note that Windows Update will download all updates anew when you clear the update cache. You can re-run a check for updates once all files have been deleted. Right-click on the Windows Update service, and select Start from the list of options.Select "do this for all current items" and click continue to grant the permissions. Windows may need administrator privileges to delete certain files.Hit the Delete-key on the computer keyboard.The easiest way to do that is to use Ctrl-A while the folder is active. Remove the checkmark from "Hide protected operating system files (Recommended)".Select "Show hidden files, folders and drives".Go to View, and scroll down until you find "Hidden files and folders" listed.Do so with a click on File > Change folder and search options.If you navigate to the folder manually, you may need to enable the showing of hidden files first. Go to C:\WINDOWS\SoftwareDistribution\Download using Explorer or any third-party file browser.Right-click on the service Windows Update and select Stop from the menu.Click on name to revert the order so that you don't need to scroll as much. The services listing is sorted alphabetically by default. Right-click on the result, and select "run as administrator" from the context menu.Open the Start Menu (tap on the Windows-key or click on it).This works on all supported versions of Windows, including Windows 7, Windows 8.1 and Windows 10. It is thankfully pretty easy to delete all cached update files.
