getScript does not load the script in the sense of persistence; it downloads the script from the server and runs it immediately. Therefore, there is no need to remove it.
However, any DOM objects that the script creates, or its functions, etc., will continue to exist. To eliminate them, you need to know what they are; it is probably best for your script to define a function that removes everything that the rest of the script creates.
source share