Changed delete to remove property instead of setting it to undefined