Added delete_item utility function; Removed unnecessary code.