Remove query detail