Please refer to the steps below to Quickly Remove Mailbox Log Files to Claim Free Space for Exchange 2010 in the event that
1. The volume where Exchange Log Files located is nearly full
2. The Backup Job failed to flush the Exchange’s Log Files for few days
3. To minimize the downtime by quickly claiming back free space to prevent Exchange Server from stop running
A. Check the lastInpectedLogTime with
Get-MailboxDatabaseCopy *
B. Quickly Delete log file older than the LastInpectedLogTime
Please ensure that ONLY Delete those log files which had been committed to Exchange Mailbox Database before the LastInpectedLogTime with
Get-ChildItem -Path 'L:\Group2' | ? {$_.Extension -like ".log" -and $_.LastWriteTime -le (Get-Date).AddDays(-1)} | Remove-Item -Force -Verbose
The powershell above will delete those *.log located in L:\Group2*.log older than 1 day to free up the space immediately.