大网数据广告活动
Windows Server 管理

Delete saved logs from Event Viewer

· 52CE 我爱测

Describes how to delete files under Saved Logs from the Event Viewer.

This article describes how to delete files under Saved Logs from the Event Viewer.

Applies to:   Windows 10 - all editions
Original KB number:   2489761

Symptoms

If you frequently view many EVT or EVTX files in Event Viewer (eventvwr.msc), you may notice a large number of files have accumulated under Saved Logs. These entries are persistent even if the original EVT and EVTX files have been deleted.

Cause

Event viewer stores saved log locations in .XML format. The .XML files can be found in the following directory.
%programdata%\Microsoft\Event Viewer\ExternalLogs

Resolution

The following command can be run from a command prompt to purge the Saved Logs.
del /s /q %programdata%\microsoft\eventv~1\extern~1
You can also browse to the following location and delete the logs manually:
C:\ProgramData\Microsoft\Event Viewer\ExternalLogs

Note: The contents of this folder are hidden so you must turn on Show Hidden Files and turn off Hide Protected Operating System Files to see them.

More information

Event Viewer reads the saved log locations when it starts and saves them when it is closed. The following actions should be taken to guarantee Saved Logs are deleted properly.

  • Close all instances of Event Viewer (MMC.EXE) before attempting to clear Saved Logs from a command prompt.
  • Make sure only one instance of Event Viewer is open if you are manually deleting Saved Logs from the GUI.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。