Yes it is possible. You have to run the following shell script from your code: ./opt/cln/galileo/galileo_sketch_reset_script.sh.
I recommend you to check the following thread: Re: How to RESET running code on Intel Galileo. That thread is about this same question, you might find it useful.
Looks like this is what I'm looking for. Thanks a lot!