Как удалить папку logs в windows 10

  • Home
  • News
  • How to Delete Win Log Files in Windows 10? Here’re 4 Ways!

By Vera | Follow |
Last Updated

Do you want to delete Win log files in Windows 10 to free up some disk space? How to delete these Windows log files? In this post, MiniTool will introduce some simple ways to you in detail. Just follow one to easily delete the log files.

What Are Win Log Files in Windows 10

When there is a program error or a noteworthy operation on your computer, Windows will store a record of it to troubleshoot. These records are saved to the dedicated log files in the Windows directory. Windows log files are also known as Win log files.

Usually, you can find the log files by going to the path (depending on Windows versions) – C:\Windows\System32\winevt or C:\Windows\System32\config.

However, these log files may be large and take up much disk space of the hard drive. To free up disk space, you may choose to delete them. But how to delete Win log files in Windows 10?

In the following part, we will introduce some methods for you.

How to Delete Win Log Files in Windows 10

Delete Windows Log Files Using the Event Viewer

To delete log files, the Event Viewer is helpful, and here are the steps you should follow:

Step 1: Press Win + R to open the Run window, input eventvwr.msc and press Enter to run Event Viewer as administrator.

Step 2: Expand Windows Logs the left pane and click one category.

Step 3: Select the entries from the middle pane. To choose a range of entries, you can press Ctrl + Shift + Enter. And then, click Clear Log from the right pane.

Alternatively, you can right-click a folder like Application and choose Clear Log to delete all the entries.

delete Win log files using Event Viewer

Use Command Prompt to Delete Log Files Windows 10

Command Prompt is the command-line utility in Windows and it can be used to perform many tasks including deleting Win log files.

Tip: To learn some information on Command Prompt, refer to this post – Command Prompt Windows 10: Tell Your Windows to Take Actions.

Just follow these instructions for this task:

Step 1: Run Command Prompt with administrative privileges.

Step 2: Type the following commands and press Enter after each command:

cd/

cd windows

del *.log /a /s /q /f

delete log files using Command Prompt

This will delete all the log files from your computer. If you want to delete individual log files, try these steps.

Step 1: Also run Command Prompt as administrator.

Step 2: Type wevtutil el and press Enter to list all the logs.

Step 3: TYpe wevtutil cl + the name of the log you want to delete and press Enter to remove the log file.

Use a .CMD File to Delete Win Log Files

How to delete Win log files in Windows via a .cmd file? Follow these steps:

Step 1: Run your notepad in Windows 10

Step 2: Copy and paste the following codes to your text:

@echo off

FOR /F “tokens=1,2*” %%V IN (‘bcdedit’) DO SET adminTest=%%V

IF (%adminTest%)==(Access) goto noAdmin

for /F “tokens=*” %%G in (‘wevtutil.exe el’) DO (call :do_clear “%%G”)

echo.

echo Event Logs have been cleared! ^<press any key^>

goto theEnd

:do_clear

echo clearing %1

wevtutil.exe cl %1

goto :eof

:noAdmin

echo You must run this script as an Administrator!

echo ^<press any key^>

:theEnd

pause>NUL

Step 3: Save the text to a .cmd file and run it as administrator.

Use a Third-Party App to Delete Log Files Windows 10

On the market, many third-party programs can be used to delete temporary files, log files, and other junk files. One of the most popular apps is CCleaner and you can get it from the Internet to have a try.

Bottom Line

How to delete Win log files in Windows 10? If you need to delete log files, these four methods are simple and just choose one to start the deletion task.

About The Author

Position: Columnist

Vera is an editor of the MiniTool Team since 2016 who has more than 7 years’ writing experiences in the field of technical articles. Her articles mainly focus on disk & partition management, PC data recovery, video conversion, as well as PC backup & restore, helping users to solve some errors and issues when using their computers. In her spare times, she likes shopping, playing games and reading some articles.

Windows is notorious for filling up the storage. Many temporary files are generated regularly, in order to decrease the loading time and improve performance in general. However, there are times when things go wrong and a multitude of errors show up in Windows.

Windows 10 keeps a log of the errors in the Event log, which can be accessed by the users to extract the error code and perform the appropriate troubleshooting steps. This event log can end up saving a lot of information, which can result in your PC running out of space.

Here I shall discuss what is the default event viewer path, and How to delete win log files in Windows 10 including PowerShell clear all event logs.

Where Are Windows Log Files Stored In Windows 10?

Before cleaning up Windows log files, you may be wondering what the event viewer default path is, and where are the Windows 10 event logs stored on our computers. This is an important piece of information that may come useful while troubleshooting your computer or clearing Windows log files.

There are two folders, depending on your Windows version where you may find the Windows log files. First, look in the following folder:
%windir%\System32\Winevt\Logs\

However, you may not find this folder on certain, in which case you can look under the following folder:
%windir%\System32\config\

Note: %windir% is your computer’s OS directory.

While Windows 10 tries to free up space automatically, the Event Viewer fails most of the time in clearing the data automatically. In such cases, you will need to clear event log in Windows 10 manually. There are several ways to delete log files in Windows 10.

Method 1: Use Command Prompt

The command prompt is the Windows command-line utility tool, which can be used to perform any task in Windows with command lines. You can also use the command prompt to clear event viewer in Windows 10. You can use the command prompt to clear individual log files, or clear entire event log in Windows 10.

Here are the steps that you can follow to delete all Windows log files:

  1. Open an elevated command prompt. You can do so from the Windows search context menu, or from a Run dialog (use Ctrl + Shift + Enter to launch cmd with admin privileges).
  2. Next, go the event viewer default path that is mentioned above using the change directory command:
    cd %windir%\system32\config
  3. To clear all the win log files, type the following command and press Enter:
    del *.log /a /s /q /f

delete_win_log_files_using_cmd

All files with a .log extension will be deleted from your computer.

If you wish to clear individual log files, here are the commands that you need to enter:

  1. Open another admin command prompt.
  2. To list the log files, type the following command and press Enter:
    wevtutil el

wevtutil_el

  1. From the list that appears, if you find a certain log file that you wish to delete, type the following command and press Enter:
    wevtutil cl <name of the log>

wevtutil_cl_application

This will delete that particular log from the Event Viewer file.

Method 2: Make A Command File To Automatically Clear Log Files

When you are trying new experimental features, there is a chance that you may be generating a lot of win log files on your computer if the feature crashes. In such cases, you might be wondering how to delete win log files in Windows 10 automatically.

You can make a command file (.cmd) to automate this process. Follow these steps to create this command file:

  1. Open a text editor like Notepad or MS visual code.
  2. Type the following code, or copy and paste the following in the editor:

@echo off
FOR /F “tokens=1,2*” %%V IN (‘bcdedit’) DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto noAdmin
for /F “tokens=*” %%G in (‘wevtutil.exe el’) DO (call :do_clear “%%G”)
echo.
echo Event Logs have been cleared! ^<press any key^>
goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
echo You must run this script as an Administrator!
echo ^<press any key^>
:theEnd
pause>NUL

  1. Save the name of this command with the extension .cmd in any location that you prefer.

clear_log_files_cmd_file

  1. Next, run this command file as administrator, by choosing the correct option from the right-click context menu.

You will see a command prompt window opens, and all the log files are cleared automatically.

Note: Run this file as admin to clear event log files.

Method 3: Use The Event Viewer GUI

In Windows 10, the Event Viewer GUI is polished and very easy to navigate through the settings. If you do not wish to work with command-line tools, you can use the GUI to delete win log files in Windows 10. Follow these steps to launch the event viewer, and clear event log in Windows 10:

  1. Open a Run dialog.
  2. Type eventvwr.msc and press Ctrl + Shift + Enter to launch the Event Viewer with admin rights.
  3. From the leftmost pane, expand the folders by clicking on the small arrow next to the folder.
  4. In the list of entries, select the entry from the middle pane and click on Clear Log… from Action section in the rightmost pane.
    Pro Tip: You can use the Shift key to select a range of entries in the middle pane.
  5. Repeat this for all the entries that you wish to delete.

event_veiwer_GUI

While this may seem a long process, this is much simpler to navigate through, and you will be done deleting log files in Windows 10.

Method 4: Use PowerShell Clear All Event Logs

PowerShell is a much more powerful command-line tool, and you can use a single command to delete log files in Windows 10. Simply follow these steps:

  1. Open PowerShell as an admin. You can do this from the start menu, or from the WinX menu if you haven’t replaced PowerShell with CMD in Windows 10.
  2. Type the following command and press Enter:
    wevtutil el | Foreach-Object {wevtutil cl “$_”}

powershell_clear_all_event_logs

This will clear all the event logs in Windows 10.

Note: This command needs to be run with admin PowerShell.

Method 5: Use Third Party Applications

There are many third party cleaner applications, which can be used to clear temporary files and other junk files in Windows 10. You can use such third-party applications to clean up the event log files.

One of the most popular applications is CCleaner, which can be used to clean all junk files on your computer for free.

If you want a more powerful file deletion software, you can look for premium options like BitRaser For File and its alternatives.

Wrapping Up

So, there you have it. Now you know where the event log directory is and how to delete win log files in Windows 10 using the methods provided above. Comment below if you found this useful, and to discuss further the same.

На этой странице вы найдете полезные советы по безопасному и эффективному удалению папки logs в Windows Следуйте нашим рекомендациям для успешного выполнения этой задачи.

Откройте Проводник и перейдите в папку, где находится logs.

Что за файлы DumpStack log и DumpStack log tmp на диске

Убедитесь, что у вас есть права администратора для удаления папки.

Как удалить ЛЮБОЙ\\НЕУДАЛЯЕМЫЙ файл\\папку в Windows — XP, 7, 8, 10 — Unlocker поможет!

Щелкните правой кнопкой мыши на папку logs и выберите Удалить.

Что можно удалять на диске C? Какие есть папки на системном диске и что в них можно удалить?

Если папка не удаляется, закройте все программы, которые могут её использовать.

Просмотр и очистка логов Windows

Попробуйте удалить папку в Безопасном режиме, если возникают ошибки.

удаленная папка снова появляется

Используйте командную строку с правами администратора и команду rmdir /s /q logs.

Проверьте, нет ли скрытых файлов в папке, которые мешают удалению.

Очистите корзину после удаления папки для полного освобождения места.

Удаляем любой неудаляемый файл — Как удалить неудаляемое

Как удалить папку которая не удаляеться windows 10

Если папка снова появляется, проверьте систему на вирусы и вредоносные программы.

Как удалить папку или файл которые не удаляются в Windows работает на 99 % (Это второй способ )

Рассмотрите возможность использования специализированных утилит для удаления файлов и папок.

Как удалить временные файлы с компьютера Windows 10? Где находится папка temp в windows 10?

На чтение3 мин

Опубликовано

Обновлено

Каждый, кто когда-либо использовал операционную систему Windows, наверняка сталкивался с такой проблемой, как нехватка места на диске. И вот, решая эту проблему, многие пользователи обнаруживают папку Logs, которая занимает немало места на жестком диске. Возникает вопрос: что это за папка и можно ли ее удалить?

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

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

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

Если вы все же решили удалить папку Logs, вам необходимо выполнить следующие шаги. Сперва, откройте проводник Windows и перейдите в директорию C:\Windows. Затем найдите папку Logs и щелкните правой кнопкой мыши на ней. В контекстном меню выберите опцию «Удалить». Подтвердите удаление папки.

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

Logs в Windows 10: назначение и суть папки

Папка Logs в операционной системе Windows 10 содержит лог-файлы, которые записывают информацию о различных событиях и действиях операционной системы. Эти файлы служат для отслеживания и диагностики проблем, а также для ведения записи о работе системы.

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

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

Папка Logs находится в директории %SystemRoot%\Logs и содержит различные подпапки, каждая из которых предназначена для хранения определенного типа лог-файлов. Некоторые из наиболее важных подпапок включают EventLogs, где хранятся системные журналы событий (Event Viewer), и WindowsUpdateLogs, где хранятся журналы обновлений операционной системы.

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

Что такое Logs в Windows 10 и зачем она нужна?

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

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

Как удалить Logs в Windows 10?

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

Чтобы удалить папку Logs в Windows 10, выполните следующие шаги:

  1. Откройте Проводник (Windows Explorer), нажав сочетание клавиш Win + E.
  2. В адресной строке Проводника введите или скопируйте следующий путь:
    C:\Windows\System32\winevt\Logs
    (На замену папке «C» может быть использовано другое имя диска, на котором у вас установлена система.)
  3. Найдите и выделите папку Logs.
  4. Нажмите правой кнопкой мыши на выделенную папку и выберите опцию «Удалить».
  5. Подтвердите удаление папки Logs в появившемся диалоговом окне.

После выполнения этих шагов папка Logs и ее содержимое будут удалены с вашего компьютера.

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

Папка Logs в Windows 10 может занимать много места на вашем компьютере. В этом руководстве вы узнаете, как безопасно удалить эту папку, освободив место на диске и улучшив производительность системы.

Создайте резервную копию важных данных перед удалением любых системных файлов или папок.

Что можно удалять на диске C? Какие есть папки на системном диске и что в них можно удалить?

Откройте Проводник и перейдите в директорию, где находится папка Logs.

Папка $WINDOWS. BT: как удалить в Windows 10 и что это?

Проверьте содержимое папки Logs и убедитесь, что она не содержит необходимых вам данных.

3 способа Как удалить НЕУДАЛЯЕМЫЕ папки и файлы

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

Что за папка $WINDOWS.~BT и как её удалить

Выберите папку Logs и нажмите клавишу Delete на клавиатуре, затем подтвердите удаление.

Как удалить папку ac-ch.ru в Windows 10

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

Используйте командную строку с правами администратора для удаления папки, если стандартные методы не работают.

Проверьте настройки системы на наличие автоматических процессов, создающих файлы в папке Logs, и отключите их при необходимости.

$WINDOWS~BT — Что за папка и как удалить WINDOWS 10/8. РЕШЕНО!

Регулярно проводите очистку системы от временных файлов и логов для поддержания оптимальной работы Windows 10.

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

удаленная папка снова появляется

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows error generator online
  • Windows 7 wot невозможно установить безопасное https соединение
  • Расширить том не горит windows 7
  • Как в windows 7 отключить plug and play
  • Apache airflow установка на windows