Skip to main content Skip to complementary content
Close announcements banner

Delete objects

This pattern describes how records can be deleted in a destination platform when they are deleted in a source platform. This pattern uses the CDP and consists of 2 steps:

  • Delete a record in CDP when a record is deleted in source platform
  • Delete a record in destination platform on deletion in CDP See also: patterns to delete records

Delete a record in CDP when a record is deleted in the source

Records can be deleted in the CDP, based on an incoming webhook event on Delete from the source platform:

Deleting a contact.

an automation consisting of an On Contact Deleted block and a Delete Contact block.

In case the source platform does not provide this type of webhook event, a comparison can be made between all records in the source platform and all records in the CDP. Note that this can quickly become very slow and does not scale for large amounts of records (e.g. 10K records or more):

Deleting many contacts.

an automation consisting of a two List Contacts blocks and a Compare Lists block containing a Delete Contact block.

Delete in destination platform on delete in CDP

Use the On delete webhook event from the CDP, to delete records in the destination platform:

Deleting records in a destination platform.

an automation consisting of an On Contact Deleted block and a Delete Contact block.

Note that the CDP holds the external id from the record in the destination platform, this id can be used to delete the actual record.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!