Properly delete elements