delete useless window