The Purge API endpoint facilitates the bulk deletion of resources, relationships, or objects from a data source. This operation is ideal for cleanup tasks, ensuring that all data of a specific profile or object definition is completely removed from the target collection.
Using the Purge Endpoint
A purge request specifies exactly what Data Source is the target of the operation, including the type and key of the contained collection to remove all data.For more details, see Create Purge Operation. The endpoint accepts the same payload when
collectionType
is set to objects
.Purge Status
Once a purge operation is initiated, the system responds with a unique identifier (purgeId
) and details about the operation’s progress:
For more details, refer to Using the Purge Status
Notes
- Target the Correct Data Source:
Ensure the
collectionKey
accurately identifies the intended collection within the data source to avoid unintentional deletions. - Use
collectionType
to Differentiate Targets:resources
: Targets resources likeprovider
oroffice
.relationships
: Targets relationships such asprovider-office
.objects
: Targets stored files or media captured in an object collection.
- Best Practices for Safe Purging:
- Review all inputs before initiating a purge.
- Use status monitoring (purgeId) to confirm successful execution or handle errors.
Deletion PropagationThe purge operation uses a cascading effect. If a resource is deleted, all its attached relationships will also be deleted.This is not the case for relationships. Deleting relationships will not affect their referred resources. Deleting objects removes both the binary payload and any pipeline-enriched properties associated with the object.