Shared pointers purge