To answer your question, yes, there is a function in Wordpress to disable script. Kindly see the link: https://developer.wordpress.org/reference/functions/wp_deregister_script/
I'm currently running a Wordpress website and i'm trying to get the best results in terms of speed/score in pageinsights. However, there are a few scripts that keep on loading !
I was wondering if there is a way to prevent this exact file from loading in the page, is a such thing possible ?