destructor

A function provided by a class in C++ and some other object-oriented languages to delete an object, the inverse of a constructor.