Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
Redmond desk4 min

How to Clear Windows 11 Event Viewer Logs Automatically

Use Task Scheduler with wevtutil to clear a Windows 11 log on a schedule—or configure size and retention behavior to manage growth without erasing every entry.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To clear a Windows 11 event log on a schedule, run wevtutil cl "Application" from Task Scheduler. That command erases all entries in the named log each time it runs. If your goal is to keep logs a manageable size while retaining recent events, configure the log’s size and overwrite behavior instead.

Choose between clearing a whole log and managing its retention

A scheduled clear and a retention policy solve different problems. A scheduled task runs a command at a time or interval you choose and clears the entire named log. Log configuration acts when the log reaches its size limit: Windows can overwrite older entries, preserve existing entries and reject new ones, or back up a full log automatically. Microsoft documents both clearing and log configuration in its wevtutil command reference, which applies to Windows 11.

As an Amazon Associate I earn from qualifying purchases.

Approach What happens to entries When it acts Preservation option
Scheduled full clear All entries in the named log are removed when the command runs. On the Task Scheduler trigger you configure. Use /bu to back up the log as part of the clear command.
Overwrite as needed Oldest entries are overwritten as new events arrive once the log is full. When the configured size limit is reached. Older entries do not remain in the active log.
Retain existing entries Existing entries remain; new events are discarded when the log is full. When the configured size limit is reached. Existing entries stay in the active log, but incoming events are lost at capacity.
Automatic backup at capacity A full log is backed up automatically rather than relying on a scheduled clear. When the configured size limit is reached. Microsoft documents this with retention enabled; /ab:true requires /rt:true.

Schedule a full clear with wevtutil

Test the command and identify the log

Open Windows Terminal or Command Prompt and run the command manually before scheduling it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
wevtutil cl "Application"

Application is an example log name, not a universal target. Replace it with the exact name of the installed log you intend to clear. Clearing a log removes its entries, so confirm the target and consider whether the log contains information you may need for troubleshooting, security review, or auditing.

#1 Best Overall
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
  • Connectivity: Includes WiFi, Bluetooth, and LAN for wireless and wired connections
  • Memory: Features 16GB DDR4 RAM for smooth multitasking and performance
  • Storage: Combines 500GB SSD and 1TB HDD for ample storage space
  • Graphics: Integrated Intel UHD Graphics 630 for crisp visuals and video playback
  • Design: Sleek desktop tower with black color and slim profile for modern look

Back up the log as you clear it

If you need a copy of the events, include the optional /bu destination:

wevtutil cl "Application" /bu:"C:LogsApplication-before-clear.evtx"

The path is illustrative. Choose a destination that exists or can be written to by the account running the command, and protect the resulting file appropriately. Check that the backup exists and can be accessed before relying on it. Microsoft documents the optional backup syntax in its wevtutil reference.

Run it from Task Scheduler

Windows Task Scheduler can run a command or script on a chosen trigger. Microsoft Q&A community guidance illustrates a scheduled-task pattern, but it is not a formal product guide; use it as an example rather than a guarantee that every setup is identical: How to set the retention period of event log in the event viewer in days.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Optiplex 3060 Desktop Computer | Intel i5-8500 (3.2) | 32GB DDR4 RAM | 1TB SSD Solid State | Built in WiFi | Bluetooth | Windows 11 Professional | Home or Office PC (Renewed)
  • [INTEL POWERED CONTENT] - Built with a 8th Generation Hexa-Core Intel i5 and 32GB of DDR4 RAM; Modern, Windows 11 ready, with 4K support, Executive multitasking, media streaming and smooth, multi-tab web browsing; Perfect as an all-purpose multimedia computer; built for content creators; Plenty of RAM and Mass storage for photo and video editing powered by Intel HD 630
  • [LATEST WIRELESS TECH] - This Dell Desktop Computer easily connects to the internet through the Built In WiFi / Bluetooth
  • [SOLID STATE STORAGE] - This Dell Computer setup comes with an ultra-fast 1TB Solid State Drive (SSD); Setup as the primary boot device; Boot and load programs with lightning speed ; Additional expansion available
  • [BUY & OWN WITH CONFIDENCE] - From the world's largest Microsoft Authorized Refurbisher; Quality Guarantee and Free Tech Support; Award-winning Customer Service; | Support Sustainable Business
  • [MODERN HI-SPEED PORTS] - USB 3.0 (x4) | USB 2.0 (x4) | DisplayPort (x1) | HDMI Port (x1) | Audio Combo Jack (x1) | Audio Out (x1) | RJ-45 Ethernet (x1) | Internal SATA (x3)
  1. Open Task Scheduler and choose Create Task.
  2. On General, give the task a clear name and select the account and permissions appropriate for the log you intend to manage.
  3. On Triggers, choose New and set the schedule or event that should start the task.
  4. On Actions, choose New. Set the program to wevtutil.exe and add arguments such as cl "Application". If you need a backup, include the /bu:"C:LogsApplication-before-clear.evtx" argument with your chosen destination.
  5. Save the task, then verify its action, trigger, account, and target log before allowing it to run repeatedly. Confirm that any expected backup is being created.

Task Scheduler’s exact labels and available options can vary by Windows build and configuration. The essential safety check is to manually test the same command and arguments against the intended log before enabling a recurring trigger.

Configure a log to manage growth without scheduled deletion

For routine maintenance, setting a maximum size and deciding what happens at capacity is usually a better fit than periodically erasing the entire log. Microsoft’s wevtutil documentation describes the sl operation for setting log configuration, including maximum size, retention, and automatic backup. Its documented retention behavior is important: with retention disabled, new events overwrite the oldest entries; with retention enabled, existing entries are kept and new ones are discarded once the log reaches its limit.

Automatic backup at capacity is distinct from a scheduled clear. Microsoft specifies that /ab:true requires /rt:true; configure and verify both settings if you want automatic backups rather than timed deletion. Consult the command reference for the supported syntax and values for the specific log and setting you are changing.

Rank #3
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
  • Model: Dell OptiPlex 7050 Small Form Factor (SFF)
  • Processor: Intel Core i7-7700 3.60 GHz
  • Memory: 32GB DDR4 Ram
  • Storage: 1TB Solid State Drive (SSD) Fast Boot + Storage
  • Operating System: Windows 11 Pro (64-bit)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why an age filter does not make wevtutil cl selective

A script might first check whether a log contains old events, then call wevtutil cl. That check does not change what the clear command does: it removes the whole named log, including newer entries. The Microsoft Q&A example linked above should not be read as a method for deleting only events older than a chosen number of days. If age-based deletion is the requirement, do not schedule a whole-log clear on the assumption that a preceding age check preserves recent entries.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Classic PowerShell event-log settings are not universal

Microsoft’s Limit-EventLog reference describes size, retention, and overflow settings for classic event logs. It does not configure every modern Windows Event Log channel. For reading logs in the newer Windows Event Log technology used by Windows Vista and later, Microsoft directs readers to Get-WinEvent; do not assume a classic-log cmdlet or legacy registry behavior applies to all Windows 11 logs.

Quick Recap

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.