delete qid and id