Implement delete function(type 1)