if (xQuery != null) {
qr = find(connection, theDb, xQuery, "", ServerCommand.find_SORT, adjacency, 0, null);
if (qr != null) {
for (int i = 0; i < qr.elements; i++) {
Doc doc = getDoc(connection, theDb, qr, i, 0, null);
removeDoc(connection, theDb, doc);
}
}
} else {
throw new XWException("xQuery must not be null");