delete unused span