Hi Sameer,
The Mendix object will be removed once its not used anymore. So if you were to move to a page that doesnt use it, or your microflow transaction ends.
Here is the documentation on transient objects and garabage collection in Mx7.
https://docs.mendix.com/refguide/transient-objects-garbage-collecting