save data on delete