delete queries from the temp table that are not hidden