Hi Nadia,
check if this query has workbooks (or) it is used in BO reporting (universe/webi). check these using the query where used list.
if you found nothing in where used list , alternatively try deleting it using table : RSZCOMPDIR (enter the query name in COMPID column) (or) use the tcode : RSZDELETE