What are the log files for in the First Storage Group folder in Exchange 2007?

Hello Experts:

I have a huge amount of log files in the folder called First Storage Group for Exchange 2007.  My question is what are they for and can they be deleted?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

They are transaction log files.  They are usually deleted when a full backup occurs.  Here is an article that explains it in depth.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TO answer your question on whether they can be Deleted - the answer is NO.
Do a backup of the database using an Exchange aware backup and they will be flushed.
If you are intending to never backup the server then you can enable circular logging which will keep them down to a minimum. However do note that circular logging basically leaves you with no data recovery options in the event of a database failure.

huntersp3Author Commented:
Hello Experts:

Thanks for the answers.  I found this script and ran it on the exchange server and it solved the problems with the logs and regained my disk drive space.  I wanted to share it with the community.

$temp = (eseutil /mk "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\E00.chk")[13]
$Bottom_Log_File = $temp.remove($temp.IndexOf(",")).remove(0,$temp.IndexOf("x")+1)
Get-ChildItem "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group" | Where-Object { $_.Name.Length -eq 15 -AND $_.Name -like "E00*.log" -AND $_.Name.Substring(3+8-$Bottom_Log_File.length,$Bottom_Log_File.length) -lt $Bottom_Log_File } | foreach($_) {remove-item $_.fullname}
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server Apps

From novice to tech pro — start learning today.