with the GDPR laws in place, it's important to have the possibility to remove contacts from Marketing Cloud. I'm trying to automate the process with existing tools and am looking for possible solutions.
Right now I'm trying to use the Remove() function from the Subscriber Object in the Core SSJ library:
<script runat="server"> Platform.Load("Core","1"); var subObj = Subscriber.Init("000-T-01-API-Delete"); var status = subObj.Remove(); </script>
The contact was created manually in Mobile Connect and exists in All Contacts. Although the query completes without errors, the contact remains in the system.
Any idea how to fix the script to perform the deletion?
I am thinking this might not be the best approach since it would be a 1 by 1 deletion of contacts performed in a loop, but I don't see an option like the API allows to tell the system to delete contacts stored in a data extension.
Any advice or ideas how to automate this process would be greatly appreciated.