Implement delete function(case 2)