How to delete exchange log file

If you need to delete exchange log file in case of space problem or some other reason, Best do it safely -> open Powershell as Administrator and run :

forfiles /M E2800*.log /P “path_to_your_logfile_folder” /S /D -1 /C “cmd /c del /F /Q @path”

“E2800*” = Prefix Of the log files. Different for each database

“/D -1” = How many days you want to keep backwords, -1=one day, -2=two days ….

Leave a Reply

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