The Data Ingest Web Service lets you delete records from a running data store.
<ingest:ingestRecords> <ingest:deleteRecords> <mdex:record> <primaryKeyProp>keyValue</primaryKeyProp> </mdex:record> </ingest:deleteRecords> </ingest:ingestRecords>
Multiple records can be deleted in the same request. Each record must be specified within an mdex:record element.
If you submit the ingestRecords request after a Transaction Web Service request that starts an outer transaction, the request must specify the outer transaction ID. If no outer transactions have been started, the ID attribute must be omitted in the request.
To delete a record from the data store:
<ingest:ingestRecords> <ingest:deleteRecords> <mdex:record> <partID>PK-123</partID> </mdex:record> <mdex:record> <supplierID>SV-789</supplierID> </mdex:record> </ingest:deleteRecords> </ingest:ingestRecords>
<ingest:ingestRecordsResponse xmlns:ingest="http://www.endeca.com/MDEX/ingest/1/0"> <ingest:numPropertiesCreated>0</ingest:numPropertiesCreated> <ingest:numRecordsAffected>0</ingest:numRecordsAffected> <ingest:numRecordsDeleted>2</ingest:numRecordsDeleted> </ingest:ingestRecordsResponse>
Request: - fn:trace(, delete-records.xq: A record with specifier (partID = SV-352) does not exist.)