garbage collector

noun
Graduate
1

A worker who removes refuse.

2

An algorithm, procedure or thread dedicated to garbage collection: reclaiming resources which are no longer in use.