Re: option for purging of message archive data
Question asked by Hemen Shah - 4/8/2017 at 6:26 AM
SM Team,
Is it possible to have option / defined period to purge the message archive data ?
This can be domain specific or may be rule.

3 Replies

Reply to Thread
Hemen Shah Replied
SM team,
Any update on this
Jean-Guy Dubois Replied
Message archive are eml files.
So you can purge with a powershell script :
# Change the value $oldTime in order to set a limit for files to be deleted.
$oldTime = [int]60 # 60 days
foreach ($path in Get-Content "C:\pathList.txt") {
    # Write information of what it is about to do
    Write-Host "Trying to delete files older than $oldTime days, in the folder $path" -ForegroundColor Green
    # deleting the old files
    Get-ChildItem $path -Recurse -Include "*.*" | WHERE {($_.CreationTime -le $(Get-Date).AddDays(-$oldTime))} | Remove-Item -Force -recurse
Hemen Shah Replied
yes, script can work but i am looking as a feature, if we can sell message archive as a service to customer and if purging can be defined at domain level or may be overall then it can be better.

Reply to Thread