@@ -403,15 +403,15 @@ private WriteResponse doWrite(String instanceId, String table, WriteRequest requ
403403 * @param instanceId the instance ID
404404 * @param table the table name
405405 * @param request the delete request containing primary key conditions
406- * @return WriteResponse indicating the result
406+ * @return DeleteResponse indicating the result
407407 * @throws RecallEngineException if the request fails
408408 */
409- public WriteResponse delete (String instanceId , String table , DeleteRequest request ) throws RecallEngineException {
409+ public DeleteResponse delete (String instanceId , String table , DeleteRequest request ) throws RecallEngineException {
410410 validatePublicEndpointConfig ();
411411 return doDelete (instanceId , table , request );
412412 }
413413
414- private WriteResponse doDelete (String instanceId , String table , DeleteRequest request ) throws RecallEngineException {
414+ private DeleteResponse doDelete (String instanceId , String table , DeleteRequest request ) throws RecallEngineException {
415415 try {
416416 // Validate request
417417 request .validate ();
@@ -454,7 +454,7 @@ private WriteResponse doDelete(String instanceId, String table, DeleteRequest re
454454 throw new RecallEngineException (errorMsg );
455455 }
456456
457- return objectMapper .readValue (responseBody , WriteResponse .class );
457+ return objectMapper .readValue (responseBody , DeleteResponse .class );
458458 }
459459 } catch (RecallEngineException e ) {
460460 throw e ;
0 commit comments