Use this function to remove a performance counter. The performance counter must be added using %PDH.Add(...) before you can use this function. The function demands the identifier of the performance counter.

Example:
%PDH.Add('\System\Processes',CID1)
%PDH.Remove(CID1)
The first line adds the performance counter \System\Processes and assigns the identifier CID1 to it. The second line removes the performance counter.