0

Is there a way to do contact delete in Child BU? (All contacts)

I want to delete the Contact in bulk.

All marketing activities (Journey, e-mail sending, etc.) take place in Child BU.

I would like to delete the contact generated by marketing activities in Child BU from Child BU.

If there is no way to delete it from Child BU, I would appreciate it if you could also tell me how to delete Contact from Parent BU.

Please let me know how I can automate it using Automation studio such as query, SSJS, etc.

1 Answer 1

1

Contact Deletion would need to be performed in the Parent BU context.

You can manually delete contacts from Contact Builder in the Parent BU.

To run it in an Automation, you would need to rely on MC REST APIs. Check this Reference for the Contact Deletion REST API.

Although you'd need the OAuth credentials to be able to call the API and write it in SSJS for the Script Activity for your automation. Check this Reference for the Access token.

Above information is not a full solution but clues so you can research and can solve it by yourself.

3
  • I turned the automation to the ssjs salesforce.stackexchange.com/questions/245799/… and it says Complete but the Contact is not deleted. Is there an error with the ssjs or is there a way to delete the Contact in bulk any other way? Commented Feb 28 at 6:18
  • I am not sure exactly how you did but it should work with the REST API
    – Duc Le
    Commented Feb 28 at 7:13
  • @SeungilShin it can take some time for the contacts to be deleted. Especially when talking about deleting them in large bulks. Allow few hours after you have executed the ssjs and check again. Commented Feb 28 at 8:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .