Does anyone know how can I clean the event viewer old logs so I can free space in the disk?
My operating system is Windows 10.
Does anyone know how can I clean the event viewer old logs so I can free space in the disk?
My operating system is Windows 10.
Just right-click each of the logs in Event Viewer and choose "Clear Log". They are typically only 20MB (or less) and overwrite events as needed, but you can right-click and choose "Properties" to adjust this.
The quickest way is to use an elevated command prompt.
Clear All Event Logs in Windows 10 using Command Prompt
You can quickly clear all event logs using a special command. Do it as follows.
- Open an elevated command prompt.
Type or paste the following command:
for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
This will produce the following output:
All Windows logs will be cleared.