Is there any solution for destroying current instance of object in itself ?
I am looking for something which looks like:
class KillMe { .... pub
No, objects cannot suicide. Any reference of itself is just a reference.
To "clear" the object within itself one would just clear all instance variables.
To "clear" the object outside itself one would set the variable equal to null.