How can I delete a script using the shopify_call 'DEL' method?

Hello Folk,

Hope you are well!!

I have posted the script using “shopify_call” but it renders multiple times. so I want to delete that script using the shopify_call “DEL” method but it’s not working. so anybody has any idea about this?

$webhook = shopify_call($token, $shop, "/admin/api/2022-01/script_tags/184720195629.json", array(), 'DEL');
	echo "

";
print_r( $webhook[‘response’] );
echo "


";

Thank you