Skip to content

how to remove js files from layout added to page through require or direct src

i want to remove js files from a layout

checkout_index_index

which is loading by require or direct src.

1)

<script src="https://abc.abc.ai/prompt.js" src_type="url" />

this file is loading in checkout file but when i try to remove it, doesnt work with this code