How do I enable/disable persist behavior?
Develop games in your browser. Powerful, performant & highly capable.
You don't, either the object has things you need to remember for the entire game / when you return to layout or it doesn't.
If you want to reset a persistent object, just destroy it and recreate it manually.