248249250251252253254255256257
.type(Message.class) .addFilter("agent", FilterOperator.EQUAL, getFirstUrl()) .now(); while (it.hasNext()) { Message message = it.next(); datastore.delete(message); // TODO: bulk delete all messages instead of one by one } }