Added logic delete.TODO Add client websocket in java