Delete a record (by id)

MDM query language and REST data access

EnrichVersion
6.3
task
Data Governance > Retrieving data
Data Governance > Consolidating data
EnrichPlatform
Talend MDM Server
Talend MDM Web UI
Delete a data record by the specified id.

Request

DELETE /data/{containerName}/{type}/{id}

Request URL

http://{serverurl}/talendmdm/services/rest/data/{containerName}/{type}/{id}

By default, an operation of deleting a record by id will generate an entry in the UpdateReport.

However, to avoid generating an entry in the UpdateReport, add the query parameter 'updateReport=false' in the request URL. For example, http://localhost:8180/talendmdm/services/rest/data/Customer/Address/1?updateReport=false.

Query parameters

  • containerName: This is a String value which specifies the name of the data container from which you want to delete a data record.
  • type: This is a String value which specifies the name of the entity from which you want to delete a data record.
  • id: Specifies the id of the data record to be deleted. For composite ids, you can use a dot-separated value. For example, to delete an Address instance with id=1 in the Customer data container, use http://localhost:8180/talendmdm/services/rest/data/Customer/Address/1,and to delete an Address instance with id "1" and "2", use http://localhost:8180/talendmdm/services/rest/data/Customer/Address/1.2.

Request Body

No content.

Headers

  • Authorization: Basic Authentication scheme

Response Body

no content

Response Code

200 - If the operation is executed successfully, the data record which is specified by the id element(s) will be deleted.