How do you clean out a shared variable after it is done and printed out on the group footer?

For example:

shared numberVar AvgCountNR;
WhilePrintingRecords;
CDBL(Sum ({@TSSales_NR})) / AvgCountNR

I want to set AvgCountNR to 0 at the end of the group footer.