for now it just cleans parent so there are no references to it.
But there is more that could be done.