Remove Script Tag
<p>I hope you have well with nice pleasure.
I am trying to remove Script tag by ID. For this purpose, I am apply code</p>

<pre><code>var elem = document.getElementById("sns_scripts");
elem.remove();
</code></pre>

<p>But, this is give me error on my console windows is :</p>

<pre><code>Uncaught TypeError: Cannot read property 'remove' of null
</code></pre>

<p>I am trying another method is :</p>

<pre><code>$("#sns_scripts").remove();
</code></pre>

<p>It is also not working. See Picture
<a href="https://i.stack.imgur.com/wqEdP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wqEdP.png" alt="enter image description here"></a></p>

<p>Picture is mention ,  sns_scripts script still avaialbe, and above this script my custom code, but it is not working.
Please help me, I am really want to remove sns_scripts script from my webpage.</p>