Why do you need this change?
Currently, attachments related to Sent Email (Table 8889) can only be deleted manually through the user interface, one by one.
In environments with a high email volume, this leads to:
- Rapid database growth
- Accumulation of large attachment files
- Manual and inefficient maintenance
- No possibility to automate cleanup processes
If developers had programmatic access to the related attachment records, it would be possible to implement controlled cleanup procedures based on filters such as:
- Email account
- Document type
This would significantly improve database maintenance, performance, and storage management, especially in on-premise installations.
Describe the request
We request that Microsoft make the attachment data related to Sent Email (Table 8889) accessible for extension development.
The goal is not to delete Sent Email records themselves, but to allow controlled deletion of attachment content while keeping the email conversation metadata.
Specifically:
- Provide access (public methods or integration events) to manage attachments linked to Sent Email.
- Allow deletion of attachment content programmatically.
- Ensure that deletion can be executed safely using filters.
- Preserve email history while removing only the file content.
This would allow partners and customers to implement automated retention policies and prevent unnecessary database growth due to stored attachments.
