Implement delete function(type 2-a, 2-b)