How can I write code in a plugin for my child theme that will allow me to use remove_action() based on if the current page is the home page?

I use this code and now it works. I think using wp-head instead of init was important in the add_action parameter:

function remove_sf_header_widget_region() {
    if(!is_front_page()){
    remove_action( 'sf_before_content', 'sf_header_widget_region', 10 );
    }
}
add_action( 'wp_head', 'remove_sf_header_widget_region' );