You can call the PdhRemoveCounter function to remove a counter from a query at any time after the counter has been added to the query and the query is closed.