Just sharing a piece of code that can be useful if you are in the same case as me. Be Careful when your object contains functions they will also be cleared (in my case I don't have any function so I haven't really managed the case)!Just sharing a piece of code that can be useful