Removes unused scripts.