Deactivate externally integrated Javascript file with Javascript

I have included the following in my header code (Google AdSense).

Now I am looking for a way to deactivate this line via Javascript:

<script type="text/javascript" src="https://domain.tld/javascript-file.js"></script>

Using CSS (Display:None) does not work because this code will be executed anyway.

I want to deactivate this line using an external JS (so that it is no longer executed) if this is defined in this external JS.

Thanks.