remove unused wilcard queries