Replace use of delete keyword with more consistent operation.