'How to remove/delete/drop an entire component

As part of setup, I'll be generating a component that will then be used to finish the setup of other components. That component will no longer be needed, after that point. So, is there a way of deleting an entire component all at once? I've found a way to delete the components of each entity, but wouldn't that be drastically less efficient?

Until I know how to do that, I'll just be doing the setup over a bunch of bundles. This will be unable to benefit from the ECS system. If I had a loading screen, it would be that much longer for it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source