delold function

Strip the attributes keeping track of the former shape