Create a deleteAllRecord, then use the writeRecords() method to write a baseline set of records to the Record Store.
To perform a baseline write:
ServiceAddress address = new ServiceAddress(host, port, contextPath); RecordStoreLocator locator = RecordStoreLocator.create(address, instanceName); RecordStore recordStore = locator.getService(); TransactionId transactionId = recordStore.startTransaction(TransactionType.READ_WRITE); Record deleteAllRecord = new Record(); deleteAllRecord.addPropertyValue(new PropertyValue("Endeca.Action", "DELETE")); recordBatch1.addFirst(deleteAllRecord); recordStore.writeRecords(recordBatch1); recordStore.writeRecords(recordBatch2); recordStore.commitTransaction(transactionId);