Removing auto versioning of JS and loading to header

If I’m reading correctly you just want to deregister a script but failed… I think that you tried to deregister it too early( before was added ).

add_action( 'wp_print_scripts', 'example' );
function example() {
   wp_dequeue_script( 'name_of_script' );
}

By calling the function in ‘wp_print_scripts’ should be fine, which is latter than ‘wp_enqueue_scripts’, where you usually add.