Loading...
Asked by Joshua Pichugin on Jun 18, 2024
Joshua is asking for a way (preferably a script) to bulk delete all logged email activities associated with a specific email address (his CEO's) from HubSpot activity feeds.
Answered by Joshua Pichugin
Joshua shared a Python script (generated by ChatGPT) that uses the HubSpot Engagements API (DELETE /engagements/v1/engagements/{engagementId}) to potentially delete these logs. Scott Marion added the important suggestion to also configure the 'Never Log' settings in HubSpot (Objects > Activities > Email Logging) to prevent future emails from being logged.