Logic

update delete function