delete and merge model