APIs & Integrations

hsuser
Member

Automating deletion of email attachments through API?

We would like to automate deletion of email attachments that is stored on your server after a period of X days. Do you guys support that yet? I don’t see any data points in the API in order to do that. Thanks.

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Automating deletion of email attachments through API?

Hi @hsuser

This isn’t something that we support. It would be possible to do this using a combination of the Engagements API and the COS Files API, but there wouldn’t be a good way to determine when the files were originally added without going throug all of your engagements to find engagements older than 30 days that have attachments.

Can you tell me more about why you’re looking to do this?

0 Upvotes