public CompletableFuture < Void > removeEntry ( String tableName , String key ) { log . trace ( "remove entry called for : {} key : {}" , tableName , key ) ; List < TableKey < byte [ ] > > keys = Collections . singletonList ( new TableKeyImpl <> ( key . getBytes ( Charsets . UTF_8 ) , null ) ) ; return expectingDataNotFound ( withRetries ( ( ) -> segmentHelper . removeTableKeys ( tableName , keys , authToken . get ( ) , RequestTag . NON_EXISTENT_ID ) , ( ) -> String . format ( "remove entry: key: %s table: %s" , key , tableName ) ) , null ) . thenAcceptAsync ( v -> log . trace ( "entry for key {} removed from table {}" , key , tableName ) , executor ) ; }
Method to remove entry from the store .