The Data Ingest Web Service allows you to delete records from a running data domain.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.endeca.com/MDEX/ingest/2/0" xmlns:ns1="http://www.endeca.com/MDEX/XQuery/2009/09"> <soapenv:Header/> <soapenv:Body> <ns:ingestChanges> <ns:deleteRecords> <ns:recordSpecifier>?</ns:recordSpecifier> </ns:deleteRecords> </ns:ingestChanges> </soapenv:Body> </soapenv:Envelope>
Multiple records can be deleted in the same request. A records deletion operation cannot be combined in the same request with any operation that would try to modify the records to be deleted.
If you submit the ingestChanges 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 domain:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.endeca.com/MDEX/ingest/2/0" xmlns:ns1="http://www.endeca.com/MDEX/XQuery/2009/09"> <soapenv:Header/> <soapenv:Body> <ns:ingestChanges> <ns:deleteRecords> <ns:recordSpecifier>"partID" = 'P123'</ns:recordSpecifier> </ns:deleteRecords> </ns:ingestChanges> </soapenv:Body> </soapenv:Envelope>
<ingest:ingestChangesResponse xmlns:ingest="http://www.endeca.com/MDEX/ingest/2/0"> <ingest:numPropertiesCreated>0</ingest:numPropertiesCreated> <ingest:numRecordsAffected>0</ingest:numRecordsAffected> <ingest:numRecordsDeleted>1</ingest:numRecordsDeleted> </ingest:ingestChangesResponse>
<ingest:ingestChangesResponse ...> ... <ingest:numRecordsDeleted>0</ingest:numRecordsDeleted> </ingest:ingestChangesResponse>