Fun fact: if you come across one of these discord webhooks you can delete them.
Just curl -X DELETE https://discord.com/api/webhooks/[...]
Just curl -X DELETE https://discord.com/api/webhooks/[...]
In other cases you may need additional headers to authenticate, but if the script you've found contains the URL, it probably also contains the auth header too.
All you do is send a DELETE request to the URL.
curl -X DELETE https://discord.com/api/webhooks/1050437982584324138/VJByvmBKESSUv4fYn0LIjlBR4VzMRTEPOKVJoWFvCeHd7o3LtclQMJDMuiLzT57iqn7B
{"message": "Unknown Webhook", "code": 10015}