If I have added code using "AddScriptToExecuteOnDocumentCreated", how would I clear that again?

I have not checked, but I am afraid that some parts of the JS may be double as I add several JS files.
And some websites do not need all of these scripts.

That is why I wonder if I should do housekeeping and keep everything clean.