Sets the deleted mailbox retention rate to 40 days and the deleted item retention rate to 10 days. This script/command requires Microsoft Exchange Server 2007.

Visual Basic
Edit|Remove
set-MailboxDatabase "Finance Mailbox Database" -MailboxRetention 40.00:00:00 -ItemRetention 10.00:00:00