Destroying an instance from inside

Hello again: thank you for the responses in my previous post about destroying instances completely.

Following the same subject, I would like to know if it is posible to destroy an instance using a method in the same class. I have been playing with the “this” keyword with no luck.

What I want is to make a class that display a popUp with all its things encapsulated in the same class, from creation to destruction.