Очистить временные файлы windows 10 через командную строку

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

от Anatoliy | Обновнено 07.06.2024 | от Anatoliy

5 практических способов удаления временных файлов в Windows [2023]

Что означает временный файл?

Временные файлы создаются всякий раз, когда вы запускаете задачу или программу на своем компьютере. Например, при установке программного обеспечения могут быть созданы временные файлы для хранения временной информации об установке. Точно так же, когда вы просматриваете Интернет, создаются временные файлы для хранения данных текущего сеанса, такие как файлы cookie, история просмотров или кеш. Как правило, эти файлы создаются для повышения производительности компьютера за счет ускорения доступа к данным или сохранения необходимой информации.

Почему важно удалять временные файлы

Хотя временные файлы могут быть полезны, они также могут вызвать проблемы при неправильном обращении. Например, они могут занимать место на жестком диске, что может снизить производительность вашего компьютера. Кроме того, временные файлы могут представлять угрозу безопасности вашего компьютера, поскольку они могут содержать конфиденциальную информацию, такую как имена пользователей и пароли, которые могут быть восстановлены киберпреступниками. Регулярно удаляя временные файлы, вы можете снизить эти риски.

Как удалить временные файлы в Windows?

Способ 1: очистить временные файлы, удалив временную папку Windows

Удаление временной папки может освободить место на жестком диске, что может повысить производительность вашего компьютера. Однако важно отметить, что удаление временной папки потенциально может вызвать проблемы с некоторыми программами или приложениями. Вот почему рекомендуется сделать резервную копию всех важных файлов перед удалением временной папки и перезагрузить компьютер после удаления. Действия по удалению временных файлов путем удаления временной папки Windows:

Шаг 1. Нажмите клавиши Windows + R, чтобы открыть диалоговое окно «Выполнить».

Шаг 2. Введите %temp% в диалоговом окне и нажмите клавишу Ok.

Шаг 3. Выберите все файлы и папки во временной папке. Затем нажмите клавишу Delete, чтобы стереть все временные файлы. Вы также можете удалить их выборочно. Как правило, большинство программ хранят свои файлы в папке с таким же именем, поэтому вы можете щелкнуть по папкам, чтобы проверить содержащиеся файлы, а затем удалить их.

Способ 2: удалить временные файлы с помощью командной строки

Удаление временных файлов с помощью командной строки — это быстрый и простой метод. Командная строка Windows — это очень полезный инструмент, который позволяет выполнять различные команды для выполнения определенных задач. Чтобы удалить временные файлы с компьютера с помощью этого метода, выполните следующие действия:

Шаг 1. Откройте командную строку, нажав клавишу Windows + R, затем введя cmd и нажав Enter.

Шаг 2. Введите cd /d %temp% в окне командной строки и нажмите Enter.

Шаг 3. Введите del * /s /q и нажмите Enter.

Команда del * /s /q

Дождитесь завершения процесса удаления.

Способ 3. Очистите временные файлы, очистив диск Windows

Очистка жесткого диска вашего компьютера является важным шагом для поддержания его оптимальной работы. Это связано с тем, что со временем временные файлы накапливаются на жестком диске, занимая место для хранения и замедляя работу вашей системы. Далее мы расскажем вам, как очистить временные файлы, очистив диск Windows.

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

Шаг 1. Откройте командную строку: нажмите клавишу Windows + R, введите cmd и нажмите Enter.

Шаг 2. Введите следующую команду: cleanmgr /d C: и нажмите Enter. Эта команда запустит инструмент очистки диска и попросит вас выбрать раздел, который вы хотите очистить.

Шаг 3. Выберите раздел, который вы хотите очистить, и нажмите OK.

Появится сообщение с вопросом, действительно ли вы хотите удалить файлы, нажмите «Да», чтобы удалить их.

Способ 4. Очистите временные файлы в настройках Windows

Еще один быстрый и простой способ — очистить временные файлы, накопленные на вашем компьютере, в настройках Windows. Этот метод также полезен для очистки других типов ненужных файлов, таких как файлы кэширования, эскизы файлов и файлы журналов.

Шаг 1. Нажмите кнопку «Пуск» и перейдите в «Настройки Windows». Вы также можете нажать клавиши Windows + I, чтобы получить к нему более быстрый доступ.

Шаг 2. В разделе «Параметры Windows» нажмите «Система», а затем выберите «Хранилище».

Шаг 3. В разделе «Память» нажмите «Временные файлы».

Настройки памяти

Windows просканирует ваш компьютер на наличие временных файлов. Когда сканирование будет завершено, выберите элементы, которые вы хотите стереть, затем нажмите «Удалить файлы» вверху, чтобы очистить их.

Удаление временных файлов

Способ 5. Удаляйте временные фишеры в один клик с помощью Advanced SystemCare

Advanced SystemCare — это универсальный очиститель ПК, который предлагает удобное решение для удаления временных файлов в Windows. В отличие от других методов, требующих технических знаний или сложных ручных действий, Advanced SystemCare предлагает простой и эффективный способ очистки временных файлов одним щелчком мыши. Мы рекомендуем вам сделать резервную копию важных данных, прежде чем использовать этот инструмент для полного удаления временных файлов.

Шаг 1. Загрузите и установите Advanced SystemCare на свой компьютер.

Шаг 2. Запустите программу, нажмите «Пуск».

Advanced SystemCare


Шаг 3. Подождите, пока программа оценит состояние вашего компьютера, после завершения сканирования вам нужно только нажать «Исправить», чтобы удалить ненужные файлы на вашем компьютере, включая временные файлы.

Advanced SystemCare

Вы также можете настроить элементы для сканирования в ручном режиме.

Advanced SystemCare

Помимо очистки временных файлов, Advanced SystemCare также предлагает дополнительные функции, такие как оптимизация системы, защита конфиденциальности в Интернете, ускорение Интернета, защита от вирусов и т. д.

Заключение

Короче говоря, регулярное удаление временных файлов необходимо для повышения производительности вашего компьютера и освобождения места для хранения. Методы, представленные в этой статье, предлагают несколько вариантов выполнения этой задачи, каждый из которых имеет свои преимущества и недостатки. Однако, если вы ищете быстрый и простой способ очистить временные файлы одним щелчком мыши, мы рекомендуем использовать Advanced SystemCare. Это программное обеспечение предлагает функции автоматической очистки временных файлов, а также другие функции для оптимизации производительности вашего компьютера. Регулярно используя Advanced SystemCare, вы сможете поддерживать свой компьютер в хорошем рабочем состоянии и продлить срок его службы.

Вопрос: Как удалить временные файлы из Windows 10?

“Моя система сильно зависает из-за временных файлов, занимающих ценное место на моем диске. Я хочу удалить их, чтобы освободить место на моем ПК с Windows. Кто-нибудь может сказать мне, как удалить эти временные файлы? И каков наилучший способ убедиться, что я делаю это безопасно и эффективно?”

Временные файлы, также называемые temp или foo-файлами, — это файлы, которые ваша операционная система или программа создает для ускорения и бесперебойной работы вашего компьютера. Временные файлы Windows могут доставлять неудобства, так как чаще всего компьютеры не удаляют их автоматически, и со временем они могут накапливаться, занимая место на вашем диске и иногда приводя к замедлению работы системы и сбоям. Знание того, как удалить временные файлы в Windows 10/11, повысит производительность вашего компьютера, гарантируя его бесперебойную работу. В этой статье мы кратко объясним, где хранятся временные файлы. Мы также обсудим пять лучших способов удаления временных файлов ручными и автоматическими методами.

  1. Часть 1: Где хранятся Временные файлы?
  2. Часть 2: Как удалить временные файлы в Windows 10/11?
    • Способ 1: Удалите временные файлы в Windows 10/11 с помощью Run
    • Способ 2: Удалите временные файлы в Windows 10/11 из настроек
    • Способ 3: Автоматическое удаление временных файлов Windows 10/11 путем активации Storage Sense
    • Способ 4: Удалите временные файлы в Windows 10/11 с помощью очистки диска
    • Способ 5: Используйте командную строку для удаления временных файлов Windows 10/11
  3. Бонусный совет: Как восстановить удаленные временные файлы в Windows 10/11
  4. Часто задаваемые вопросы о временных файлах в Windows 10/11

Часть 1: Где хранятся Временные файлы?

Прежде чем мы перейдем к методам удаления временных файлов, давайте сначала разберемся с вопросом – где хранятся временные файлы Windows 10/11?

Временные файлы можно найти расположенными в разных папках в зависимости от того, что их создало. Те, которые создает ОС Windows, обычно хранятся в папке “%system%\Windows\Temp” — вероятно, именно там хранится большинство временных файлов на вашем компьютере. В то время как другие, которые создают “Пользователи”, сохраняются в папке их профиля пользователя “%userprofile%\AppData\Local\Temp.”

Чтобы получить доступ к этим файлам и удалить их, вы можете легко воспользоваться поиском Windows, который мы объясним далее в следующих разделах.

Когда необходимые временные файлы не удаляются регулярно, они превращаются в ненужные файлы, которые накапливаются и замедляют работу вашего компьютера. Чтобы повысить производительность вашей системы, ниже мы перечислили пять способов безопасного удаления временных файлов Windows 10/11. Проверьте их:

Способ 1: Удалите временные файлы в Windows 10/11 с помощью Run

Первый способ удалить временные файлы Windows 10 вручную и полностью — это использовать встроенное в систему средство запуска. Вот как удалить временные файлы в Windows 10 с помощью команды Выполнить:

  1. Нажмите клавиши Win + R вместе, чтобы открыть диалоговое окно “Выполнить”.
  2. Введите %temp% и нажмите “ОК”. Это откроет временную папку.

  3. Выберите конкретные ненужные папки и временные файлы или выделите все элементы, одновременно нажав клавиши Ctrl + A.
  4. Нажмите клавишу “Удалить” и выберите “Да” при появлении запроса. Если в окне использования появится папка, просто нажмите Пропустить, чтобы продолжить удаление выбранных временных файлов.

Удаленные временные файлы отправятся в корзину. Если вы хотите удалить их безвозвратно, перейдите в корзину и очистите ее.

Способ 2: Удалите временные файлы в Windows 10/11 из настроек

Другой способ вручную удалить временные файлы из Windows — это перейти к хранилищу через настройки. Вот как удалить временные файлы в Windows 10/11 из настроек:

  1. Откройте настройки Windows 10, нажав клавиши Win + I , и перейдите в раздел «Система».

  2. Выберите “Хранилище” на левой панели.
  3. В разделе “Локальный диск” (C:) выберите «Временные файлы». Если вы не можете увидеть этот параметр, возможно, они скрыты. Итак, выберите “Показать больше категорий”.

  4. Вы увидите список временных файлов, которые вы можете удалить. Выберите все временные файлы, которые вы хотите удалить, и нажмите “Удалить файлы”.

Теперь ваш ПК с Windows начнет удалять выбранные временные файлы.

Способ 3: Автоматическое удаление временных файлов Windows 10/11 путем активации Storage Sense

Если вы не хотите удалять временные файлы Windows 10 вручную, вы можете использовать функцию Storage Sense, чтобы удалять их автоматически и с заданной периодичностью. Вот как автоматически удалить временные файлы в Windows 10, активировав Storage Sense:

  1. Нажмите клавиши Win + I, чтобы открыть настройки.
  2. Перейдите в раздел «Система» > «Хранилище(Storage)».
  3. В разделе Хранилище нажмите на “Настроить Storage Sense или запустите его сейчас”.

  4. Включите функцию Storage Sense. Затем установите флажок рядом с опцией “Удалить временные файлы, которые не используются моими приложениями”.

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

  5. После настройки параметров очистки по требованию нажмите “Очистить сейчас” внизу, Storage Sense начнет освобождать место, удаляя большинство временных файлов, которые оставались в корзине более 30 дней.

Способ 4: Удалите временные файлы в Windows 10/11 с помощью очистки диска

Если на диске не хватает места, вы также можете воспользоваться встроенной утилитой Windows — Очистка диска для сканирования и удаления временных файлов, которые больше не нужны. Давайте посмотрим, как очистить временные файлы в Windows 10 с помощью очистки диска:

  1. Нажмите клавиши Win+ E, чтобы запустить “Проводник файлов”. Затем выберите “Этот компьютер”.

  2. Щелкните правой кнопкой мыши на жестком диске и затем выберите “Свойства”.

  3. На вкладке “Общие” нажмите «Очистка диска».

  4. В разделе Файлы для удаления выберите файлы или папки, которые вы хотите удалить. В качестве альтернативы вы можете выбрать “Очистить системные файлы”, очистка диска подсчитает, сколько места система может безопасно освободить.

  5. Нажмите “ОК”. Дождитесь окончания уборки, и все будет в порядке.

Способ 5: Используйте командную строку для удаления временных файлов Windows 10/11

Вы также можете использовать командную строку Windows для удаления временных файлов из вашей Windows. Вот как удалить временные файлы в Windows 10 с помощью CMD:

  1. Нажмите клавиши Win + S и введите “CMD” в появившейся строке поиска.
  2. В списке результатов щелкните правой кнопкой мыши командную строку и выберите опцию Запуск от имени администратора.

  3. Появятся окна командной строки. Введите команду “del /q/f/s %TEMP%\*” и затем нажмите Enter.

  4. Как только команда будет запущена, вы увидите строки кода, которые указывают на то, что временные файлы были удалены из папки Temp.

Бонусный совет: Как восстановить удаленные временные файлы в Windows 10/11

Иногда при удалении ненужных временных файлов пользователи могут также удалить некоторые временные файлы, которые необходимы приложениям. Если это случилось с вами, вы можете легко восстановить их с помощью стороннего программного обеспечения, такого как Tenorshare 4DDiG Windows Data Recovery. Это универсальное решение для восстановления удаленных, потерянных, скрытых и поврежденных файлов с внешних и внутренних устройств хранения. Вот что еще предлагает 4DDiG:

  1. Восстанавливает более 1000 типов файлов, включая фотографии, аудио, видео и документы.
  2. Восстанавливает данные с жестких дисков, USB-накопителей, корзины, SD-карт и цифровых камер.
  3. Восстанавливает удаленные данные с потерянных разделов, при сбоях системы и вирусных атаках.
  4. Удобный для пользователя и простой в навигации интерфейс.
  5. Поддерживает все старые и новые версии ОС Windows.

Вот как вы можете использовать 4DDiG для восстановления ваших удаленных временных файлов:

  1. Выберите локальный диск
  2. Скачайте и установите инструмент 4DDiG на свой компьютер. Запустите инструмент и выберите диск, с которого вы удалили временные файлы.

  3. Просканируйте локальный диск
  4. Нажмите кнопку “Начать». Инструмент будет искать случайно удаленные файлы. Вы также можете указать тип целевого файла в правом верхнем углу.

  5. Предварительный просмотр и восстановление удаленных временных файлов
  6. Как только сканирование начнется, вы можете приостановить или остановите его, чтобы просмотреть нужные файлы. Нажмите “Восстановить” после того, как вы определили свои целевые временные файлы.

Сохраните восстановленные временные файлы в безопасном месте на вашем компьютере, и вы готовы к работе.

Часто задаваемые вопросы о временных файлах в Windows 10/11

Вопрос 1: Почему я должен удалять временные файлы?

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

Вопрос 2: Безопасно ли удалять временные файлы?

Да, удалять ненужные временные файлы совершенно безопасно. Временные файлы создаются для хранения временной информации, чтобы задача могла быть выполнена плавно во время ее выполнения. И их не нужно постоянно хранить на вашем компьютере. Но имейте в виду, что не удаляйте их, когда они запущены, потому что это может привести к программным ошибкам.

Вопрос 3: Когда вам нужно удалить временные файлы?

Когда у вас заканчивается место для хранения, самое время удалить все или некоторые временные файлы, чтобы освободить место для других файлов и данных и ускорить работу вашего компьютера.

Вывод

Надеемся, мы ответили на ваш запрос “Как удалить временные файлы в Windows 10”, используя пять проверенных методов. Временные файлы необходимо удалить, поскольку они замедляют работу системы, а также занимают много места на диске. Удаление их поможет вам повысить производительность вашей системы.

Однако, если вы случайно удалили какие-то важные данные вместе с временными файлами, вы можете легко восстановить их с помощью программного обеспечения для восстановления данных Tenorshare 4DDiG. Это ваш незаменимый инструмент и лучший вариант для восстановления случайно удаленных файлов со всех видов устройств хранения. Восстановите ваши файлы прямо сейчас всего за три клика!

Tenorshare 4DDiG Data Recovery

4DDiG — это ваш непревзойденный выбор для восстановления всех потерянных данных на компьютере Windows / Mac после различных сценариев потери, таких как удаление, форматирование, RAW и т.д. с более высокой вероятностью успеха.

Скачать Бесплатно

Скачать Бесплатно

Купить Сейчас

Купить Сейчас

Под очисткой жесткого диска средствами классической «Командной строки» можно понимать как удаление временных файлов, так и полное удаление всех данных с физического накопителя или конкретного логического раздела. Ниже приведены все три варианта очистки.

Вариант 1: Утилита очистки

Системная утилита «Очистка диска» больше известна пользователям как классическое приложение с интерфейсом, запускаемое через «Свойства» любого локального диска. С ее помощью можно безопасно удалить неактуальные файлы, накопившиеся в разных инструментах Windows. Она же поможет и тем пользователям, кому удобнее совершать различные действия по управлению системой, в том числе очистку накопителя от мусора, через консоль.

  1. Вызовите «Командную строку» от имени администратора из поиска Windows или другим известным способом.
  2. Очистка диска через командную строку в Windows 10-0

  3. Запустите штатную утилиту «Очистка диска», выполнив команду cleanmgr /sageset.
  4. Очистка диска через командную строку в Windows 10-1

  5. Если желаете пропустить выбор файлов для удаления и выполнить очистку без диалога с настройками по умолчанию, используйте команду cleanmgr /sagerun.
  6. Очистка диска через командную строку в Windows 10-2

  7. Для максимальной очистки системного раздела в «cleanmgr» предусмотрена команда cleanmgr /verylowdisk, для очистки временных файлов предыдущих установок Windows – команда cleanmgr /setup.
  8. Очистка диска через командную строку в Windows 10-3

Вариант 2: Полная очистка диска

Если необходимо удалить все данные с физического диска, воспользуйтесь консольным средством «Diskpart».

  1. Откройте от имени администратора «Командную строку» и выполните команду diskpart, чтобы запустить одноименную утилиту управления дисками и разделами.
  2. Очистка диска через командную строку в Windows 10-4

  3. Выполните набор следующих команд:
    • list disk
    • select disk 1
    • clean
  4. Очистка диска через командную строку в Windows 10-5

В результате выполнения этих команд с диска будут удалены все разделы. Кроме того, диск станет помечен как не проинициализированный. Также обратите внимание, что команда clean неприменима к физическому диску, на котором находится активная операционная система. Если необходимо очистить не весь диск, а конкретный раздел, используйте следующие команды:

  • list volume
  • select volume №
  • delete volume

Очистка диска через командную строку в Windows 10-6

Первая команда в «Diskpart» выводит список не физических дисков, а имеющихся на них томов. Второй командой выбирается конкретный том, третьей командой выполняется его удаление.

Вариант 3: Форматирование

Такой вариант очистки отличается тем, что удаляются только данные, а не содержащие их разделы. Первоначальная разметка диска в этом случае остается неизменной.

  1. Откройте «Командную строку» от имени администратора.
  2. Выполните команду format d: /fs:ntfs /q, в которой d — это буква очищаемого раздела, ntfs — тип файловой системы, а q — ключ быстрого форматирования.
  3. Очистка диска через командную строку в Windows 10-8

Как вариант, отформатировать раздел можно средствами консольной утилиты «Diskpart».

  1. Запустите в «Командной строке» утилиту «Diskpart» как было показано выше.
  2. Выполните одну за другой следующие команды:
    • list volume
    • select volume №
    • format fs=ntfs quick
  3. Очистка диска через командную строку в Windows 10-7

Как и в предыдущем варианте, первая команда выводит список доступных томов, а вторая выбирает нужный том. Форматирование выполняется третьей командой, в данном примере в файловую систему NTFS. Если необходимо отформатировать раздел в FAT32, соответственно, в качестве значения параметра «fs» необходимо указать fat32. Ключ «quick» указывает, что форматирование будет быстрым, то есть без фактической перезаписи данных на диске. Если файлы на разделе нужно удалить без возможности восстановления, не используйте этот параметр.

Наша группа в TelegramПолезные советы и помощь

Accumulation of Cache files with time can cause the Windows 11 or 10 systems to slow down and also consume costly storage space, especially if you are using M.2 drives. Therefore, clearing Cache files perhaps improves the system’s efficiency if done often, and with that many times small problems could also be solved. Now, coming to the main topic of this article is “how we can use the command prompt in Windows 11 or 10 to delete cache files quickly“; so, let’s see the steps we can follow to achieve this.

Steps to clear different Cache on Windows using CMDOpen Command Prompt as Administrator1: Clear DNS Cache2: Clear Windows System Cache3: Reset Windows Microsoft Store to clear its Cache4: Clear Temporary Files5. Clearing Thumbnail CacheConclusionFAQs

What is the role of Cache files?

The cache files on our system whether it is a PC or smartphone, the role of them is to store the data temporarily that accessed repeatedly by the user so that the app or system can perform better and serve the required data quickly. For example, a browser stores a cache of websites we visit often so that it can load them quickly.

Steps to clear different Cache on Windows using CMD

There are multiple types of cache files generated by different applications on our Windows system. Here we show the commands to clear the most common cache files such as the ones created by applications, DNS cache, Microsoft Windows store cache, and Thumbnail Cache.

Open Command Prompt as Administrator

The first step is ofcourse we need to access the command line interface and that can be done by using the CMD. To open that, click on the Windows Start button and then search for “Command Prompt“, as it appears click on “Run as Administrator“.

Rus as administrator command prompt

1: Clear DNS Cache

DNS cache’s main task like any other cache file is to speed up the process, but instead of Windows system, DNS cache helps in loading websites fast by storing the address of websites to improve our browsing experience. But sometimes this great feature can also cause issues if the information it has cached becomes corrupted or outdated. Let’s take an example, what if a website’s IP address has been changed but still not updated in the DNS cache and it keeps using the old IP address to resolve the website?

In such as scenario, the browser would through an error. But such meager problems can be resolved by just clearing the DNS cache on Windows, Here is the command that, we can use in our command prompt to clear the Windows DNS cache.

ipconfig /flushdns

Type the above command and hit the Enter key, in return, it will give a message- “Windows IP Configuration Successfully flushed the DNS Resolver Cache.”

2: Clear Windows System Cache

We can use the inbuilt Disk Cleanup utility of Windows to clear the System cache via GUI, however, this can be possible with CMD as well, a single command will invoke the Disk Cleanup utility which will also clear the system cache, here is the command to follow.

In the command prompt, execute the given command that will in return run the Disk cleanup with a predefined set of options instructed in the command using the flag 1.

cleanmgr /sagerun:1

3: Reset Windows Microsoft Store to clear its Cache

Windows 10 and 11 come with an application store to install various popular software programs, it is known as the Microsoft Store. Many times common issues such as being stuck while updating apps through the store or apps not downloading or installing properly on Windows, can be resolved by cleaning the Microsoft Store cache.

In your command prompt type “WSReset.exe” and hit the Enter key to clear the Microsoft Store cache. The command will reset the Windows apps store without deleting any already installed applications or changing any user settings.

WSReset.exe

4: Clear Temporary Files

To store the information temporarily for performing various actions properly on the system: running programs, file transfer, or the system itself creates temporary files. Although, most of the time these files get deleted automatically, however, if you need to do that manually then for that the command is given below:

Type the following command to delete all files in your Windows TEMP folder:

del /q/f/s %TEMP%\*
Clear Temprorary files windows using command

5. Clearing Thumbnail Cache

On Windows, the Thumbnail Cache is generated by the system which helps in loading the images and icons faster. For example, when we open a folder with hundreds of images, it will take a few seconds to show their Thumbnails, however, once the system creates the cache for the images, the next time it will quickly load the Thumbnails, and eventually, this will increase the performance and also speed up the process. However, if for some reason the Thumbnail cache is corrupted then here is the command to delete it, so that our system can generate the same again.

First, stop the Windows Explorer process by typing:

taskkill /f /im explorer.exe

Runt the command to clear all Thumbnail cache:

del /f /s /q %LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db 

Restart the Explorer again using the command:

start explorer.exe
clear Windows Thumbnail cache using command

Conclusion

We have listed a few commands that are easy to remember and also help in quickly removing unwanted cache files to resolve various system issues along with freeing up disk space. Apart from that, removing cache files from time to time ensures our system’s smooth performance.

FAQs

Q: Is there any chance that clearing the Windows cache deletes personal files or settings?

A: No, clearing the Windows cache will not affect the user’s settings or files. It will only delete the temporary files that are not essential in the working or operations of the system.

Q: When and how many times a user should clear Cache files?

A: There is no specific time but if you install and uninstall programs often or perform internet browsing a lot then it is a good idea to clear the Cache at least once in a month.

Q: Will deleting the DNS cache increase the internet or web browsing speed?

A: No, clearing the DNS cache could solve some internet connectivity issues if there is a problem in Domain name resolution however, will not directly impact or increase the internet speed.

Windows 10 is a phenomenal operating system (OS), but like any other OS, the more you install applications, change settings and browse the web, you can clutter it up. In this article, you’re going to learn how to keep Windows clean by covering how to delete backup files in Windows 10, use the disk cleanup cmd, remove file history, unnecessary system restore points, delete the Windows.old folder, and the $Windows.~BT folder and more.

By following the steps in this tutorial, you could potentially clean up tens or even hundreds of gigabytes of valuable space on your Windows 10 machine!

Before You Start

If you’d like to follow along with each of these handy storage-saving tips, you’ll only need to meet one prerequisite; Windows 10. All examples demonstrated in this tutorial were done on Windows 10 Build 1909, but these tips should work on older builds also.

Removing Windows 10 Backups

Let’s start this space-saving tutorial and cover how to delete backup files in Windows 10. Windows 10 has a built-in feature that automatically backs up files to a separate storage volume.

The Backup and Restore feature helps ensure you don’t lose important files, but it has a downside; the backed-up files’ size keeps inflating.

To conserve space, you should periodically check for and delete backup files. To do so, follow the instructions below to remove the backups you don’t need.

  1. First, click on the Start button, then type backup. You should see the Backup settings application; click on that.
Running Backup Settings

2. Once in the Backup settings, click on the Go to Backup and Restore (Windows 7) link to open up the Backup and Restore (Windows 7) app.

Confirming If There Are Old Windows 7 Backup Files

Confirming If There Are Old Windows 7 Backup Files

3. In the Backup and Restore window, you’ll see your backup drive. As shown below, click on the Manage space option.

If you see “Windows Backup has not been set up” under the Backup section, you can skip the rest of this section. You have no older Windows backups taking up space.

Accessing The Backup Drive

Accessing The Backup Drive

4. In the Manage Windows Backup disk space window, you’ll see two options to manage your backup drive; the View backup and Change settings options.

Click on the View backups… button. This button lets you choose and select a backup period to delete.

Managing Windows Backup Drive

Managing Windows Backup Drive

5. Choose a Backup Period from the list from a timeframe you feel comfortable with removing.

6. Click Delete to remove all contents of the backup files in the selected time period.

The Backup and Restore feature saves a copy of the files inside the folder you selected upon setting up this feature. Meaning, deleting a Backup Period will delete all the files the system backed up on that time period.

Deleting Backup Periods

Deleting Backup Periods

7. Back on the main Manage Windows Backup disk space window, click on the Change settings button.

8. Click on the Keep only the latest system image and minimize space used by backup option. Setting this option automatically removes all of the currently-stored backups and only keeps the latest ones.

9. Click OK to proceed with the option selected.

Keeping The Latest System Image

Keeping The Latest System Image

Deleting Windows File History

Assuming you’ve already cleared your backups from the previous example, but you’re still missing a large amount of space in your drive. Clearing up space from using the File History is another way to reclaim some space.

Windows File History is another built-in feature of Windows 10 that lets you automatically back up your files. Unlike the Backup settings, File History only stores files that are in your Documents, Music, Pictures, Videos, and Desktop folders to your separate or external drive.

To clean up Windows File History:

  1. Right-click on the Windows Start button and choose Settings to open up the Windows Setting window.
Accessing Windows Settings

2. On the Windows Settings page. scroll down and click on Update & Security.

Accessing Windows Update, Recovery and Backup Settings

Accessing Windows Update, Recovery and Backup Settings

3. Click on Backup.

4. If you’re using Windows File History already, press the More options link to open the Backup Options window.

If you see Back up using File History turned off, you can skip the rest of this section. You have no backed-up files taking up space.

Accessing File History Settings

Accessing File History Settings

5. In the Backup options window, you’ll probably find the Keep my backups dropdown is set to keep files Forever. To free up space on your drive, change the Keep my backups option to 1 month or whatever time interval you prefer, as shown below.

Configuring Backup Options

Configuring Backup Options

You can also remove the current backup drive as it completely disables the File History. But, you should think twice before doing so since you wanted to back up your files in an external drive in the first place!

6. While you’re in the Backup Options window, scroll down to the bottom. You’ll see an option as shown below, then click on the Stop using drive button.

Disabling File History Backup

Disabling File History Backup

There’s also an option to delete all file backups while keeping the recent ones. Run PowerShell as an administrator, then type in this command fhmanagew.exe -cleanup 0 and press Enter.

Windows Backup and File History both focus on a separate or external drive. Now it’s time to clear up space in your local drive.

Removing Windows System Restore Points

If you’ve ever experienced corruption with your Windows 10 OS and discovered you could restore it with system Restore Points, you know the benefit. A system restore point is a collection of files and registry settings taken at a specific point in time.

Even though having a system restore point is a great benefit, storing many restore points will eventually take up disk space. To ensure restore points don’t go overboard, follow the steps below on how to remove them.

  1. Click the Start button and type restore, then click on Create a restore point.
Create a restore point

2. As demonstrated below, click on the Configure button under the System Protection tab. This will open up the System Protection window that lets you configure the system’s restore points settings.

Accessing System Restore Points Configuration

Accessing System Restore Points Configuration

3. Click on the Delete button to delete all restore points freeing up the most space and click OK.

You can set the maximum space restore points consumes by adjusting the slider if you need to maintain some restore points.

Deleting System Restore Points

Deleting System Restore Points

Removing Cached Updates

Windows Updates tend to do what they please in the Windows 10 background. When Microsoft releases new updates, Windows 10 will tend to download and install them automatically.

When Windows 10 downloads and installs updates, it caches update files that let you uninstall them at some point if needed. The only caveat is that the files keep piling up, eating away storage space.

Other than cleaning up your storage, removing cached updates fixes issues with Windows Update. Perhaps you’re getting an error, or it’s stuck at 0% download progress. You should start with a clean slate.

Stopping the Windows Update Service

The Windows Update service typically locks cached updates. To remove cached updates, you’ll first need to stop the Windows Update service. To do so:

  1. Click on the Windows start menu and type services.msc. You should then see the Services window pop up.

2. Inside the Services window, right-click on Windows Updates and select Stop. Keep the Services window open to re-enable the Windows Update service later.

Disabling Windows Update Services

Disabling Windows Update Services

You can also stop the Windows Update service via PowerShell by running Get-Service -Name 'wuauserv' | Stop-Service.

Deleting Cached Updates via the GUI

Once you’ve stopped the Windows Update service, it’s time to begin removing some files and folders.

  1. Open up File Explorer and navigate to the C:\Windows\SoftwareDistribution\Download folder.

2. Select all the files and folders by pressing Ctrl+A.

Selecting Cached Update Files

Selecting Cached Update Files

3. Once everything is selected, press the Delete key to remove the cached updates.

To delete the files without moving to Recycle Bin, press the Shift+Delete keys instead.

4. After removing the cached updates, go back to the Services window, right-click on the Windows Update service and choose Start.

Deleting Files Using PowerShell

In the previous example, manually removing the cached updates from the File Explorer is surely efficient. However, it takes a lot of effort to complete the process.

You can use PowerShell to remove the cached updates with a single script and it all happens at once.

Create a PowerShell script and paste the following code in or open up Windows PowerShell as Administrator and paste the code snippet below into the console.

## Stops the Windows Update Service
Stop-Service -Name 'wuauserv'

## Targets the Windows Cached Update location
Set-Location $env:windir\SoftwareDistribution\Download

## Deletes everything inside the *Download* folder *-Force - forces deletion of read-only files
## -Recurse - includes files in sub-directories
## -Confirm:$false - (quiet mode) suppresses prompts*
## Remove-Item * -Recurse -Force -Confirm:$false

## Starts the Windows Update Service
Start-Service -Name 'wuauserv'

Deleting the Windows.Old Folder After a Windows 10 Upgrade

If you were previously running Windows 7 on your computer and upgraded to Windows 10, you may have a folder named Windows.old on your computer. This folder is a backup of your Windows 7 installation when you upgrade to Windows 10.

In a sense, it’s great that you can still access stuff you had in your old Windows version. However, an old Windows version takes up a large amount of space in your drive, so how do you fix that?

You can clean up this Windows.old folder in three different ways, each with its advantages and disadvantages.

Using the Storage Sense Settings

You can remove old Windows versions by using a Windows 10 feature called Storage Sense. Storage Sense is a built-in Windows 10 feature that monitors storage and frees up space automatically. Below are some of Storage Sense features that make it stand-out from other methods of cleaning up your Windows 10 system.

  • Clears Temporary Files in your system that are not in use
  • Dehydrates cloud-backed content that hasn’t been opened in a certain amount of days
  • Deletes files in the Downloads folder if they haven’t been opened for more than a certain number of days.
  • Removes files in the Recycle Bin if they have been there longer than the time configured in the Storage Sense settings.

Storage Sense is pretty useful for many things, like the sole purpose of deleting the old versions of your Windows system, here’s how.

To delete a Windows.old folder with Storage Sense:

  1. Click on the Start button and type in storage, then click on Storage Settings.
Accessing Storage Settings

2. Once you have the Storage settings up, click on the Configure Storage Sense or run it now option.

Configure Storage Sense

Configure Storage Sense

3. In the Configure Storage Sense window, scroll down and enable the Delete previous Windows option.

If you don’t see the Delete previous Windows option, you can skip this section.

4. Click on the Clean now button.

Deleting Previous Windows Version via Storage Sense

Deleting Previous Windows Version via Storage Sense

Using the Temporary Files Settings

Windows 10 also has a handy feature hidden under the Storage section in the Settings menu called Temporary Files. This feature can clean up many types of unwanted files but for now, let’s focus on deleting the Windows.old folder.

  1. Navigate back to the Storage settings window. Click on Temporary files.
Accessing the Temporary Files

Accessing the Temporary Files

2. In the Temporary files window, check the Previous Windows installation(s) option. This selection includes the entire old Windows version.

In case you don’t see the Previous Windows installation(s) option, it means you don’t have old Windows versions in the system, and you can skip this section.

3. Click on the Remove files button to clean up every type of temporary file checked.

As shown below, the total space to be cleared is 23.57 GB—huge, right?

Selecting Previous Windows Installation(s) to Delete

Selecting Previous Windows Installation(s) to Delete

Running the Disk Cleanup Tool

For the final way to remove a Windows.old folder and old installation, we have the Disk Cleanup tool. Disk Cleanup is part of the Windows legacy tool. It was first introduced in Windows 98. You can say that the Disk Cleanup tool is an old version of the Storage Sense in Windows 10.

Yes, it’s old but not obsolete as it still does its job pretty well, such as cleaning up the previous version of Windows you have on your storage.

To run the Disk Cleanup tool to cleanup the Windows.old folder:

  1. Click on the Windows start button, type cleanmgr and select Disk Cleanup.

2. On the small pop-up window that comes up, choose the drive you want to clean up and click OK. Since you’re using the Disk Cleanup tool to remove the windows.old folder, choose C:\.

Selecting Drive to Clean Up

3. Inside the Disk Cleanup window, click on the Clean up system files button to include the system files on the list of files and folders you can delete.

Accessing System Files to Delete

You can also choose to delete temporary files in the Disk Cleanup selection area, which you’ll see covered later.

4. When you click on the Clean up system files button, select the C:\ again. You’ll then see a list containing the system files, such as the old windows versions displayed with Previous Windows installation(s).

5. Check the Previous Windows installation(s) option to add to the list of files to delete from the system and click OK.

Selecting Previous Windows Installation(s) to Delete

It will take some time to complete cleaning up the drive depending on the total amount of disk space to be cleaned. Once the cleaning is done, then you’re all set!

Cleaning Drive

Deleting the $Windows.~BT and $Windows.~WS Folders?

Like the Windows.old folder from the previous section, when you upgrade Windows to Windows 10, it creates a $Windows.~BT and a $Windows.~WS folder. These folders contain a copy of your Windows system that enables you to revert to your old version of Windows.

Since the release of the Windows 10 Anniversary Update (Version 1607), you can roll back to your previous Windows version within ten days after upgrading. Then, both the $Windows.~BT and $Windows.~WS folders are deleted automatically once the rollback period is over.

Is it safe to delete them on your own? Yes, but it’s a bit tricky getting rid of these folders.

The ~WS folders are system folders, meaning the system owns them, not the user. To delete the folders, you’ll first need to take ownership, see how to in the next section.

Deleting System Folders Using PowerShell

There are many ways to delete the $Windows.~BT and $Windows.~WS folders that you’ll find on the internet. Some say they work, some say they don’t do anything, but the most effective way of deleting these system files is using PowerShell as administrator.

To delete the $Windows.~BT Folder and other system folders, open up Windows PowerShell as administrator, and copy the following code into the console. You can also create a PowerShell script with this code.

## takes ownership of the folder
## */F - specifies the filename or directory name pattern
## /R - recurse: instructs the tool to operate on files in the specified directory and all subdirectories.
## /A - gives ownership to the administrators' group instead of the current user.*
takeown /F C:\'$Windows.~BT\*' /R /A

## Grants full control for the Administrator account to make changes on the folder
## */T - indicates that this operation is performed on all matching files/directories below the directories specified in the name.
## /grant - grants the specified user access rights.*
icacls C:\'$Windows.~BT\*.*' /T /grant administrators:F

## Deletes the system folder
## *-Force - forces deletion of read-only files
## -Recurse - includes files in sub-directories
## -Confirm:$false - (quiet mode) suppresses prompts* 
Remove-Item C:\'$Windows.~BT\' -Recurse -Force -Confirm:$False

You can see the demonstration below of deleting the $Windows.~BT folder, but the same method applies for deleting the $Windows.~WS folder.

Deleting $Windows.~BT Folder via PowerShell

Deleting $Windows.~BT Folder via PowerShell

Other Space-Saving Tips to Clean up Windows 10

Aside from the main examples in this tutorial, there are other ways you can clear up space in your storage, such as deleting files from the Downloads folder and uninstalling unused applications.

Clearing Your Downloads Folder

A typical culprit causing you to lose space in your drive is your Downloads folder. Usually set as the default download location in your web browser, this folder can expand quickly.

To clean it up:

  1. Open up File Explorer, paste C:\Users\%USERPROFILE%\Downloads in the address bar, and press Enter. This path points to the Downloads folder in your home directory.

2. Select everything inside of this folder by pressing Ctrl+A to select all files or hold the Ctrl key while clicking on each file to delete and leave the ones you want to keep.

Accessing the Downloads Folder

Accessing the Downloads Folder

3. Once you’re happy with your selection, press the Delete or Shift+Delete keys to delete the files permanently.

Removing Unused Applications

Often than not, you tend to install applications and leave them there in the system even if you’re not using them. As a result, these applications take up space in your drive, so it would be wise to uninstall some of them.

To uninstall applications:

  1. Click on the Start button, type in apps and click on Apps & Features.
Accessing Apps & Features

2. From the Apps & features section, look for any application you don’t need anymore, select an application and click on Uninstall to remove it from the system.

Uninstalling Applications

Uninstalling Applications

Deleting Temp Files in Windows 10

If you’ve been following along, you may have already run the Disk Cleanup tool. This tool, by default, Temporary Files are cleaned up when using Disk Cleanup. But if you’re skeptical and want to be on the safe side, you can also clean up temporary files via File Explorer or PowerShell.

Temp files are located in the C:\Users\%USERPROFILE%\AppData\Local\Temp folder. You can safely delete all files in this folder using either File Explorer or perhaps PowerShell if you prefer the command line or are automating this step.

If you’d like to delete temp files in Windows 10 with PowerShell:

  1. Click on the Windows start menu and type powershell.

2. Right-click on Windows PowerShell and choose Run as Administrator.

3. Paste the following command inside of the PowerShell console. This command will attempt to remove all files and folders inside of your temp file folder.

Remove-Item -Path $env:USERPROFILE\AppData\Local\Temp\* -Recurse

PowerShell may return a few errors, as shown below. This is to be expected. You’ll usually find other programs are actively using some files. If this happens, restart Windows 10 and try again, but you may not be able to remove all files.

Permission denied errors while deleting temp files in Windows 10

Permission denied errors while deleting temp files in Windows 10

Conclusion

You should now have the knowledge you need to keep Windows 10 free of clutter! Once you’ve deleted backup files, file history, the Windows.old folder, run disk cleanup cmd, and deleted temp files in Windows 10, your OS should be streamlined and ready to go!

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Нужен ли интернет для обновления windows 10
  • Обновить звуковые драйвера на windows 10 realtek
  • Minecraft windows 10 edition официальный сайт
  • Adb fastboot driver windows 7
  • Генератор файла ответов для автоматизации установки windows