Logo
Home
Resources

Product

Custom Workflow

Resources

Blog
Youtube
Template
Home
>
Product
>
Template Top
>
detail

How to Unassociate All Related Records in HubSpot Custom Workflow

HubSpot’s  using a third-party custom workflow action, you can now unassociate all related records at once — automatically and safely.

This feature helps you maintain a clean and accurate database without manually editing every record.

‍

Demo Video

Over view
Code

Detail

🎯 Purpose

The purpose of this workflow is to automate the process of removing all record associations between objects in HubSpot.

Instead of deleting records, this workflow simply unlinks their relationships — helping you reset, reorganize, or prepare data for re-association when needed.

For example:

  • Remove old deals linked to duplicate contacts
  • Comply with GDPR or internal data-retention rules by detaching past activities
  • Undo incorrect associations created by integrations or imports
  • Reset object relationships before data migration or consolidation

This action ensures a safe and auditable cleanup of your CRM environment.

🧭 Key Use Cases

Use CaseDescription

🔁 Duplicate Record Cleanup :Remove deals, tickets, or activities linked to duplicate contacts.

🧹 Data Hygiene / Cleanup : Unassociate data automatically linked by integrations or bulk imports.

🧾 Compliance / GDPR : Detach past interactions before deleting records for privacy compliance.

🧩 Pre-Merge Reset : Reset associations before merging or re-structuring data models.

⚙️ Integration Maintenance : Unlink connected objects before reconnecting external apps or APIs.

🪜 Step-by-Step Guide (as shown in the demo)

  1. Open Workflows
    Navigate to Automation → Workflows in HubSpot.
  2. Create a New Workflow
    Choose From scratch, then select the object type (e.g., Contact-based) and click Next.
  3. Set Enrollment Triggers (Optional)
    Define enrollment criteria (e.g., a list or property filter).
    For testing, you can also enroll contacts manually.
  4. Add an Action
    Click the + icon on the workflow canvas to add a new action.
  5. Select the App Action
    Search for “Unassociate all related records” and select the action provided by your third-party app.
  6. Specify Target Associations
    Choose which related objects you want to unassociate:
    Deals, Tickets, Contact,Company etc.
  7. Save and Review
    Click Save, then proceed to Review and publish.
  8. Turn On the Workflow
    Enable the workflow with Turn on.
    (You can also decide whether to enroll existing records.)
  9. Run a Test
    Enroll a test contact or object to confirm that the related records are unassociated correctly.
  10. Check the Logs
    In the History tab, verify that the action shows as Succeeded and review the number of records unassociated.

⚠️ Notes & Best Practices

  • This workflow does not delete any records — it only removes their associations.
  • The action is irreversible, so consider backing up related record IDs beforehand.
  • Make sure you have the necessary edit and association permissions in HubSpot, and the connected app has proper authorization.
  • Recommended to test in a sandbox environment before production use.

🧠 Conclusion

Using a custom workflow action to unassociate related records allows you to clean, restructure, and automate data maintenance in HubSpot — safely and efficiently.

Whether you’re preparing for data migration, compliance cleanup, or CRM optimization, this method helps you maintain a high-quality, well-organized CRM environment.

Source Code

HTML
CSS
Javascript

FAQ

Is this "Bulk Association Removal Action v2" a standard HubSpot feature?

No, it is likely not a standard feature. Based on the operating procedure (Step 4) which says "select 'Bulk Association Removal Action v2' from the action list," this is a custom action added by a specific third-party app installed in HubSpot.

If I run this action, will the associated deal or contact records themselves also be deleted?

No, they will not be deleted. As clearly stated in the "Warning" section of the article, this action only removes the "association" between records. The records themselves (such as contacts or deals) will remain in HubSpot.

I accidentally removed the associations. Can I undo the operation?

No, you cannot. The "Warning" section states, "This action cannot be undone." Because this action is powerful, it is recommended that you double-check that your targets are correct before running it and take backups (exports) if necessary.

Search

Search more

Related Template

Need Customization?

We can customize this sample to match your specific business requirements.

Book Free Consultation

Got a quick dev request?

Put it on Trello!Need a fix for HubSpot, CMS, or GAS? Post it on Trello.

Development Requests Here

How to Configure Date Add/Subtract Actions in HubSpot Custom Workflows

HubSpot CMS: Implementing a High-Converting "Rich CTA" Module with Shine Effects

HubSpot CMS: A Responsive "Definition List" Module for Event Overviews & Specs

HubSpot CMS: Implementing a "Step Flow" Module for Process Visualization

GAS Library: Automated Blog Post NG Word Checking with AI (Gemini/OpenAI)

Company Info
Name : SweetsVillage .Inc
CEO :
‍
Tomoo Motoyama

HomeTemplateCustomWorkflow
Terms & ConditionsPrivacy PolicyContact us

Copyright ©SweetsVillage .Inc

Back To Top Image