Remove js and css from a template in wordpress
<p>I want to remove css and js file from a template in WordPress by using wp_dequeue_script and wp_dequeue_style function but my code is not working. </p>

<pre><code>Js File: &lt;script type='text/javascript' src='http://localhost/worpress/wp-content/themes/goliath/theme/assets/js/vendor/jquery.hoverintent.min.js'&gt;&lt;/script&gt;

Css File: &lt;link rel='stylesheet' id='plsh-bbpress-css'  href='http://www.smeadvisor.com/wp-content/themes/goliath/theme/assets/css/bbpress.css' type='text/css' media='all' /&gt;
</code></pre>

<p>I am using goliath theme and I have added below code in goliath-child theme functions.php file</p>

<pre><code>add_action('wp_print_scripts','example_dequeue_myscript');
function example_dequeue_myscript() {
   wp_dequeue_script( 'jquery.hoverintent' );
}

add_action('wp_print_styles','example_dequeue_mystyle');
function example_dequeue_mystyle() {
   wp_dequeue_style( 'bbpress' );
}
</code></pre>

<p>Please help me in these!</p>