So, my issue is the following. I have a XSD file that has an include at the top for another schema. That included schema has another dependency, and so on for a few more files. I decided it would be easier to flatten the xsd file into a single file. I now have a XSD file that is 28,000 lines with many types that are unused. I need to upload the flattened file to something, but it is too large now. I was able to flatten the xml using XMLSpy.
Since the file is so large, I uploaded it here to view: https://filebin.net/m9ldhtty4rkmgixj/FlatRates.xsd
Is there a way to remove all the unused useless dependencies that is not manual?