How to remove erlang :counters?

How do you remove :counters? Are they garbage collected when not needed anymore?

The manual does not contain any information on this:
https://erlang.org/doc/man/counters.html

1 Like

Yes, as there is no mention of explicit close/drop/cleanup, you can assume that the runtime will properly clean them up for you.

1 Like

Yea, they are reference counted and garbage collected.

1 Like