They remove them and replace them with metal blanks, windows can be expensive to maintain and are easily damaged, so metal blanks are used instead. an ideal aircraft wouldn’t have any windows as openings mean you have to strenghten that area….. they would also as said probably be cheaper and lighter.