Clean some variables after delete