In October 2014 Microsoft added a new “Recover Deleted Items From Server” button to Outlook 2013. We have found this button to create trouble in that it enables users to purge emails that should remain part of the record. We have been unable to find the control ID for the new button so cannot disable it in the registry as we have done with the related “Recover Deleted Items” (ID=5654). The Office 2013 fluent user interface control does not list the new control ID, and the macros we’ve run seem incapable of pulling IDs from Outlook 2013. Does anyone know the control ID for the new “Recover Deleted Items From Server”?
There are a few ways to solve your email retention issues.
Verify the version of exchange that applies to your specific situation: 2010/2013/Office365 etc.
In Exchange: Modify or create a retention tag to NEVER DELETE.
Create a Retention policy to NEVER DELETE
Apply the policy to the email boxes you wish including shared boxes.
You also can turn on Litigation hold
You can use powershell or the UI to apply these settings depending upon if you have local access or if the exchange server is cloud hosted.
Configure Deleted Item retention and Recoverable Items quotas https://technet.microsoft.com/en-us/library/ee364752(v=exchg.150).aspx
Outlook 2010 article https://support.office.com/en-au/article/Assign-retention-policy-to-email-messages-3e5fd2dc-633f-4a38-b313-b31b81f7cf7a?CorrelationId=cc48ce61-1f1a-4097-ba1c-f3295e8246ee&ui=en-US&rs=en-AU&ad=AU
If you still want to pursue a programmatic solution take a look at: https://msdn.microsoft.com/en-us/library/microsoft.exchange.data.directory.systemconfiguration.retentionpolicy(v=exchg.150).aspx You can use these classes, not knowing the specific language or your project type I cannot point you to the specific article but this should give you a good start.
Take a look at: https://www.microsoft.com/en-us/download/details.aspx?id=36798 for the control id for user interface items
Hope this helps.
The only thing that comes to my mind is to deploy Outlook ribbon customization. You can actually remove Actions group completely: