I need to allow my users to set the default page of the blog. So when someone visits, "www.example.com/blog/" the page they see is either the blog posts list or a specific page. 

It looks like I can tell which page is already set using:  


    get_option( 'page_on_front' ): returns the ID of the static page assigned to the front page. [source][1]

Can I change that by using: 

    set_option( 'page_on_front', 10 );

How would I remove a specific front page that has already been set? 
Do I set it to null?


  [1]: https://codex.wordpress.org/Function_Reference/is_home