I want to delete (allow recovery) all mail after it has been in the deleted items folder of a user for 90 days. I have set up the various manged folders etc and running the managed content settings command:
Set-ManagedContentSettings -identity "deleted items - 90 days" -AgeLimitForRetention 90 -RetentionAction deleteandallowrecovery -RetentionEnabled $true -TriggerForRetention whenmoved
With the TriggerForRetention set as whenmoved It does not delete the messages after they have been in the folder after that time. If I set 'whendelivered' it does delete them 90 days after the delivery date of the message. I want them to actually exist in the deleted items folder for 90 days before they are deleted....what am I missing?