Deleting windows updates files

Как в Windows 10 удалить файлы обновлений?

C периодическими обновлениями Windows 10 знаком каждый пользователь данной операционной системы. Их главная особенность – внезапность. В любой момент без каких ибо предупреждений может начаться их загрузка. Обычно это проявляется в активной работе некоторых системных служб.

С течением времени места на системном диске C становится все меньше, и многие пользователи не понимают куда оно девается ведь они туда ничего не закачивают.

Файлы обновлений одни из самых главных пожирателей свободного пространства на системном диске. Зачастую их объем переваливает за несколько гигабайт.

В данной статье мы расскажем про еще один способ освобождения места на диске C в windows 10, заключающийся в удалении файлов обновлений.

Особенности хранения файлов обновлений в Windows 10

Чтобы вы понимали что это за файлы мы в двух словах опишем вам процесс обновления. Сначала специальная служба, отвечающая за проверку наличия обновления отправляет запрос на сервер. Если они имеются, то происходит загрузка этих файлов на ваш компьютер. Причем не куда – то, а именно на диск C.

После их загрузки будет осуществлена их установка. Обычно она происходит во время выключения компьютера.

После того, как обновления установлены, windows по какой – то причине не удаляет скачанные файлы с исходниками обновлений и они съедают все больше места на диске C. Вот их то мы и будем удалять.

Как удалить?

Многие пытаются отыскать эти файлы вручную где – то в системных папках. Но к счастью Microsoft предусмотрела специальный инструмент по освобождению места на диске C. В нем присутствует опция безопасного удаления файлов обновлений Windows. Им то мы и воспользуемся.

Для этого откройте область уведомлений через значок в правом нижнем углу экрана и в открывшемся меню нажмите “Все параметры”.

Вход в настройки windows 10

Далее выбираете “Система” и в меню слева “Память устройства”.

Заходим в настройки системы

Теперь справа нажимаем на “Освободить место сейчас”.

Настройки системы – > освобождение места

Запустится сканирование занятого пространства на предмет наличия файлов, которые можно удалить без риска. По итогу будет отображено примерно вот такое окно:

Окно с доступными для безопасного удаления файлами

Здесь галочками отметьте нужные пункты и нажмите кнопку “Удалить файлы”.

Запустится процесс очистки. Он может занять некоторое время так как в этот момент начнется удаление и сжатие старых файлов обновлений Windows. По окончании процесса возможно будет предложено перезагрузить компьютер.

Удаление ненужных файлов обновлений для очистки Windows

Как известно, при установке обновлений Windows, файлы обновлений сначала скачиваются в системные папки, и после установки обновлений. там и остаются. Поэтому, размер папки Windows все время растет. За год папка толстеет на 6-10 Гбайт. Это же происходит, когда вы ставите программы, дистрибутив которых выполнен в виде msi файла. И это помимо массы временных файлов, которые создаются во время установки. Как удалять временные файлы, я думаю, вы знаете.

А как бороться с файлами обновлений, которые не так просто найти и удалить вручную, а зачастую даже невозможно, так как они находятся в защищенных папках?

Где искать файлы обновлений?

Все обновления Windows и ряда прочих программ доставляются пользователю на компьютер в виде msi или msp файлов. После скачивания из Интернет они хранятся в папке C:\Windows\SoftwareDistribution\Download. А после установки необходимые системе файлы помещаются в скрытой папке «c:\Windows\Installer».

Папку C:\Windows\SoftwareDistribution\Download можно чистить смело вручную или написав простейший файл с расширением bat или cmd и поместив в него строку:

del c:\Windows\SoftwareDistribution\Download\*.* /f /s /q

Также растет папка «c:\Windows\Prefetch». Файлы, которые хранятся в папке prefetch, содержат информацию, о приложениях, которые запускаются на компьютере. Эта информация используется службой Prefetch для более быстрого запуска программ повторно. Если вы часто устанавливаете и удаляете различные программы и приложения, то папка prefetch переполняется лишней информацией, которая уже никак не используется, а просто занимает место на жестком диске. Соответственно если удалить все содержимое папки prefetch, то нужную информацию программы запишут в нее заново, а ненужная удалится навсегда. Если вы полностью удалите все файлы с папки prefetch, то первая загрузка Windows 7 после удаления немного замедлится, пока программы заново внесут свои данные.

Читайте также:  Real vnc viewer для windows 10 portable

del c:\Windows\Prefetch\*.* /f /s /q

Также, если у вас версия Windows 7 Корпоративная (Enterprise), то у вас может быть включена служба Shadow Copy для теневеого резервного копирования данных. Удалить данные этой службы можно командой:

vssadmin delete shadows /All /Quiet

Сохраненный bat файл с этими 3 строками можно подключить в Планировщик задач и выполнять по расписанию.

А как же папка c:\Windows\Installer?

Как мы сказали, эта папка растет в результате установки программ и обновлений. И просто так её содержимое удалять нельзя, потому что часть данных используется потом для удаления того, что было установлено. Но часть данных бесполезна. Например, одни обновления заменяются другими, более полными, старые становятся не нужны. Как выполнить чистку этой папки грамотно, ничего не повредив?

Я долгое время в работе использую уникальную программу PatchCleaner. Эта утилита обнаруживает такие уже неиспользуемые бесполезные файлы, которые называются orphaned. Как она их находит? Используя WMI запросы к системе можно получить список используемых инсталяторов и патчей и дальше его сравнить со списком файлов в директории Installer.

Утилита имеет возможности использования в режиме командной строки через CLI (Command Line Interface). Запустив утилиту с ключом /d, она автоматически определит все ненужное и удалит такие файлы. Как вы поминаете, её после установки можно также добавить в планировщик и запускать, например, раз в месяц после установки обновлений.

Она прекрасно работает со всеми версиями Windows Vista. Единсвтенное условие для работы — установленный .Net Fframework 4.5.2. Кстати, утилита имеет portable версию.

Что не нужно удалять?

Папка C:\Windows\WinSxS, или Windows Side by Side, присутствует в ОС, начиная с Windows XP. Microsoft создала систему, позволяющую сохранять несколько версий одинаковых библиотек (DLL) и использовать при необходимости именно ту, что требует конкретная программа. Папка предназначена для защиты пользователей от не совсем прямых рук некоторых программистов. При установке некоторые программы пытаются заменить виндосовские dll-файлы на свои собственные, что не всегда есть хорошо и может привести к отказу системы. Компания Microsoft решила эту проблему. Windows направляет dll-файл программы в WinSxS, и программа считает, что все заменено, и спокойно работает. Windows в свою очередь тоже продолжает спокойно работать.

Короче говоря, содержимое этой папки удалять не нужно. Что можно с ним сделать? Да, Windows 8.1 и более новые версии поддерживают сжатие этой папки. Как это можно сделать описано в статье Microsoft на TechNet.

Delete Downloaded Windows Update Files in Windows 10

How to Delete Downloaded Windows Update Files in Windows 10

If you are running into issues with Updates, you can try to delete downloaded Windows Update files. When an update package is damaged or fails to install, Windows 10 may keep the corrupted file on the drive, so it will further cause issues with updates. Here is how to delete the downloaded Windows Update files that Windows 10 doesn’t delete itself.

Windows 10 checks for updates automatically unless you disable this feature manually. The operating system comes with the Windows Update service, which automatically downloads and installs the updates from Microsoft. The downloaded update files are stored on your system drive in the C:\Windows folder.

There are certain reasons for having corrupted Windows Update files. It can be an improper shutdown, OS crash, power failure, or something gone wrong with your Registry. After that, Windows Update may fail to do its job properly. The OS may fail to check for updates, or fail to install them. Sometimes, the Windows Update page in Settings cannot be opened!

To fix most of the Windows Update issues in Windows 10, usually it is enough to run the built-in Windows Update troubleshooter.

Run the built-in Windows Update troubleshooter.

  1. Open the Start menu and type: troubleshooting and press Enter.
  2. Click «Windows Update».
  3. Click «Run as administrator» in the Troubleshooter’s dialog and complete the Windows Update troubleshooter. See if Windows Update works properly.

When you run into issues though with updates, you may spend hours or even days figuring out what is going wrong. In such case, you can try to delete downloaded Windows Update files to start over. The SoftwareDistribution folder contains files related to updates obtained via Windows Update, it is present on all versions of Windows. It could have a couple of hundreds megabytes of size. But if this folder is much larger, this indicates that some updates are corrupted.

Читайте также:  Студенческий анлок для windows phone

To Delete Downloaded Windows Update Files in Windows 10,

  1. Press Win + R on the keyboard and type services.msc in the Run box.
  2. Stop the service named Windows Update.
  3. Open File Explorer .
  4. Go to C:\WINDOWS\SoftwareDistribution\Download. Copy-paste this path to the explorer’s address bar.
  5. Select all files of the folder(press the Ctrl-A keys).
  6. Press the Delete key on the keyboard.
  7. Windows may request for administrator privileges to delete those files. Turn on the option «Do this for all current items» in the dialog and click on Continue.

Restart Windows 10 and check for updates. See if this fixed your issues.

Alternatively, you can create a batch file to automate the process.

Delete Downloaded Windows Update Files with a Batch File

  1. Open Notepad.
  2. Paste the following text:
    net stop wuauserv
    cd /d %SystemRoot%\SoftwareDistribution
    del /s /q /f Download
    net start wuauserv
  3. Save it to a file with a *.cmd extension. You can place it on the Desktop.
  4. Right-click the file you have created and start it as Administrator from the context menu.

You are done. Now restart the PC and check for available updates.

Here’s how does it work

The command net stop wuauserv stops the Windows Update service. Next, the cd command switches the current folder to C:\Windows\SoftwareDistribution. The del command erases the contents of the Download folder and its subfolders. Finally, the last command, net start wuauserv , starts the Windows Update service again.

To save your time, you can download this ready-to-use batch file.

Articles of interest:

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

Share this post

About Sergey Tkachenko

Sergey Tkachenko is a software developer from Russia who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

5 thoughts on “ Delete Downloaded Windows Update Files in Windows 10 ”

i haven’t noticed this before but Also disk clean-up has an option to delete update files also,

AFAIK it cleans up WinSxS instead.

Hi Sergey, Is any chance to fix loop booting PC after Windows OS updates without reinstalling OS ?

How to Delete Windows 10 Update Files and Cached Data?

How to delete downloaded Windows 10 Update files Correctly

Remove or delete Windows 10 update files will free the system drive space and speed up your PC too. When you update your Windows, the update files will be cached on your Windows system drive. You must manually delete Windows 10 update files or use some third-party application. The built-in Disk Cleanup’s of Windows feature is great for deleting Windows temporary files. But for deleting Windows 10 update files, you can use the Windows 10 installed Update section.

Related Articles:

This is the most common problem user asked us about. Unless we had explained for previews Windows, like Windows 8.1 and Windows 7. Fortunately, it works the same for all Windows. So try to clean up your system temporary files to speed up the performance of your computer, specialty Windows 10.

Delete Windows 10 Update Files

There are two ways to delete Windows 10 update files. The first one is deleting from Windows update an installed update file which sometimes causes the issue. The second is delete the update cached files in Windows 10 using disk cleanup.

Delete Windows 10 update files and temporarily cached files:

  1. Check Windows 10 Update files.
  2. Delete an installed update file.
  3. Remove Windows 10 temporary files.
  4. Cleanup Windows 10 with Disk Cleanup

Follow the below step by step guide to delete Windows 10 update files, temporary files, and other cached files. Let’s begin with uninstalling an update file.

1. Press Windows+R to open the Run and type “appwiz.cpl” on the Windows Run to open Program and Features. On the programs and feature page, select View installed updates.

Delete Windows 10 Update Files and Temporary Cached Files – Technig

2. To delete an installed update, select and right click the installed update you want to uninstall, then click Uninstall.

Note: Some Windows updates are not removable, you can’t simply uninstall it with Windows Programs and Features section.

Remove Windows Update Files and Cached Data

This is the second method to delete Windows update files and other cached data or temporary files. Just follow up the below guide.

Читайте также:  Как поменять название рабочей группы windows 10

1. Open your File Explorer (This PC or My Computer). Right-click the Windows system drive and click Properties to open the Local Disk (x) Properties. The system drive is where your Windows 10 has been installed currently.

Windows 10 System Drive Properties – Technig

2. On the Properties of the system drive, click Disk Cleanup to open Disk Cleanup for the drive (C:). Then select all from Download Program files to Thumbnail files under Files to delete. When you have selected all of them, click Clean up system files.

Delete Windows 10 Update Files

3. Now on the Disk Cleanup tab, select all options again, then click OK to delete all Windows 10 update files and temporary files.

If you want to delete System Restore and Shadow Copies, select More Options tab and click Clean up to remove system restore and shadow copies.

Delete Windows 10 System Restore and Shadow Copies

Remember: This action will remove all system restore point, you will not be able to restore to preview point unless the system will create a new restore point.

4. Just click Delete Files to make sure that all files will remove successfully. Until it will not finish, don’t close the process window or shutting down your system.

Are you sure you want to permanently delete the files

5. Now all Windows 10 update files and other cached files must be deleted. Close the System Properties window.

That’s it, easy and simple.

To do the same task or need to more about deleting system cached files or remove Windows update files, I recommend you to read the below articles.

How to delete downloaded Windows Update files

This is the manual task you can do to delete downloaded Windows update files. It is easy to delete all cached update files. This works on all supported versions of Windows, including Windows 7, Windows 8.1 and Windows 10.

How to delete downloaded Windows 10 Update files – Technig

  1. Open the Run.
  2. Type services.msc.
  3. Right-click on the result, and select “run as administrator” from the context menu.
  4. Locate the Service Windows Update. The services listing is sorted alphabetically by default. Click on the name to revert the order so that you don’t need to scroll as much.
  5. Right-click on the service Windows Update and select Stop from the menu.
  6. Go to C:\WINDOWS\SoftwareDistribution\Download using Explorer or any third-party file browser. If you navigate to the folder manually, you may need to enable the showing of hidden files first.
    1. Do so with a click on File > Change folder and search options.
    2. Go to View, and scroll down until you find “Hidden files and folders” listed.
    3. Select “Show hidden files, folders and drives”.
    4. Remove the checkmark from “Hide protected operating system files (Recommended)”.
    5. Click Apply, then OK.
  7. Select all files of the folder. The easiest way to do that is to use Ctrl-A while the folder is active.
  8. Hit the Delete-key on the computer keyboard.
  9. Windows may need administrator privileges to delete certain files. Select “do this for all current items” and click continues to grant the permissions.
  10. Go back to the Services window.
  11. Right-click on the Windows Update service, and select Start from the list of options.

Cleanup Windows 10 with third-party Software

PC Scan & Repair by Reimage software is also a good tool to completely scan and repair your computer. Download and install it then start scanning. The below screenshot is the scan result’s of my Laptop.

PC Scan & Repair by Reimage

Also, there are more third party apps will do this for your, but doing Windows task with built-in Windows app is better and free. It will let you discover your computer features and functions more.

Related Queries:

  • Delete Windows 10 update cache
  • Delete Windows update files Windows 7
  • Delete Windows update files Windows 10
  • Delete downloaded Windows 10 updates
  • Windows update cache location Windows 10
  • Windows 10 update files location
  • How to delete downloaded but not installed Windows updates in Windows 10
  • Clear Windows update cache and fix Windows updates
Оцените статью