locked
Deleting from Archive Database RRS feed

  • Question

  • Hello, I setup some retention policies on our exchange 2010 server. These policies will archive emails older than 1 year into an archive database. 

    I also want to setup a policy to delete items older than 3 years from the archive database? Is there a way to do this in exchange 2010 sp3?

    Thanks in advance for any pointers.

    Sunday, September 27, 2015 11:53 PM

Answers

  • The only way I know to do that is to create a personal tag and have users apply that tag to folders in the archive.  This can also be scripted using PowerShell and Exchange Web Services, but it's not trivial.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

    • Proposed as answer by David Wang_ Monday, September 28, 2015 2:00 AM
    • Marked as answer by David Wang_ Wednesday, October 7, 2015 5:25 AM
    Monday, September 28, 2015 12:30 AM
  • Hi,

    I agree with Ed's response.

    You should create a retention tag then you can assign a retention policy to an email folder:

    https://support.office.com/en-AU/article/Assign-retention-policy-to-email-messages-3E5FD2DC-633F-4A38-B313-B31B81F7CF7A

    Or you can use Exchange Web Services to Apply a Personal Tag to a Custom Folder:

    http://blogs.technet.com/b/exchange/archive/2013/05/20/using-exchange-web-services-to-apply-a-personal-tag-to-a-custom-folder.aspx

    Regards,

    David 


    • Marked as answer by David Wang_ Wednesday, October 7, 2015 5:25 AM
    Monday, September 28, 2015 2:04 AM
  • Tom, you need to keep in mind that you are trying to delete items from the archive mailboxes - the database is a mailbox database, just like any other.  Just because you have designated it to solely hold archive mailboxes doesn't change this fact.  So Ed and David are right - you need to figure out how to delete the old emails from the mailboxes (which requires a retention tag), not how to delete them from the database.

    Will Martin ...
    -join ('77696c6c406d617274696e2d66616d696c6965732e6f7267' -split '(?<=\G.{2})' | ? { $_ } | % { [char][int]"0x$_" })

    • Marked as answer by David Wang_ Wednesday, October 7, 2015 5:25 AM
    Monday, September 28, 2015 12:35 PM

All replies

  • The only way I know to do that is to create a personal tag and have users apply that tag to folders in the archive.  This can also be scripted using PowerShell and Exchange Web Services, but it's not trivial.

    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

    • Proposed as answer by David Wang_ Monday, September 28, 2015 2:00 AM
    • Marked as answer by David Wang_ Wednesday, October 7, 2015 5:25 AM
    Monday, September 28, 2015 12:30 AM
  • Hi,

    I agree with Ed's response.

    You should create a retention tag then you can assign a retention policy to an email folder:

    https://support.office.com/en-AU/article/Assign-retention-policy-to-email-messages-3E5FD2DC-633F-4A38-B313-B31B81F7CF7A

    Or you can use Exchange Web Services to Apply a Personal Tag to a Custom Folder:

    http://blogs.technet.com/b/exchange/archive/2013/05/20/using-exchange-web-services-to-apply-a-personal-tag-to-a-custom-folder.aspx

    Regards,

    David 


    • Marked as answer by David Wang_ Wednesday, October 7, 2015 5:25 AM
    Monday, September 28, 2015 2:04 AM
  • Tom, you need to keep in mind that you are trying to delete items from the archive mailboxes - the database is a mailbox database, just like any other.  Just because you have designated it to solely hold archive mailboxes doesn't change this fact.  So Ed and David are right - you need to figure out how to delete the old emails from the mailboxes (which requires a retention tag), not how to delete them from the database.

    Will Martin ...
    -join ('77696c6c406d617274696e2d66616d696c6965732e6f7267' -split '(?<=\G.{2})' | ? { $_ } | % { [char][int]"0x$_" })

    • Marked as answer by David Wang_ Wednesday, October 7, 2015 5:25 AM
    Monday, September 28, 2015 12:35 PM