Function Ref.clear

clears reference

void clear();