Clean unused elements.