Deleting records by using a LoopBackRequest node
Use a LoopBackRequest node in a message flow to delete a data record through a LoopBack® connector such as MongoDB, Cloudant®, or PostgreSQL.
Before you begin
About this task
You delete a record by specifying Delete in the Operation property of the LoopBackRequest node, and specifying the ID of the record in the LocalEnvironment.Destination.Loopback.Request.id environment variable. If no record is found with a matching ID, an error is returned.
If no ID is specified, but an external ID name and value are specified in the LocalEnvironment.Destination.Loopback.Request.externalIdName and LocalEnvironment.Destination.Loopback.Request.externalId environment variables, the records with that external ID are deleted. In some cases, multiple records might match the same external ID. If no ID or external ID is specified, you can use a filter.where clause to specify the records to be deleted. For more information about filtering, see Filtering the records retrieved through a LoopBack connector.
When records are deleted, a result is returned from the installed connector, such as a count of the deleted records.
Procedure
Follow these steps to delete a record: