--- a/tests/delete/delete.sh
+++ b/tests/delete/delete.sh
@@ -10,12 +10,14 @@
# Create file to be deleted, index, query
echo "DeletedFileUnique" > $tstfile
recollindex >> $mystderr 2>&1
-recollq DeletedFileUnique > $mystdout 2> $mystderr
+recollq DeletedFileUnique 2> $mystderr |
+ egrep -v '^Recoll query: ' > $mystdout
# Delete file and query again
rm -f ${tstdata}/delete/tobedeleted.txt
recollindex >> $mystderr 2>&1
-recollq DeletedFileUnique >> $mystdout 2>> $mystderr
+recollq DeletedFileUnique 2>> $mystderr |
+ egrep -v '^Recoll query: ' >> $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1