There are a number of options for doing this.
If you want to use this as an application, with NO access to any diagrams, then you just use the application builder to build it into a single executable.
Another way to do this is to use the "Save with Options" feature, and save it for application distribution. This retains all subVIs but removes the diagrams. If you use the VI Library editor, you can then select the top level VI such that when a user opens the new .llb file, they only open this top level application. This is equivalent to the above suggestion, but doesn't require building the application. This is only recommended if you don't have the application builder. It is VERY important that you make a copy of your VIs before doing this, as it re
moves the diagrams permanently.
Another solution is to manually remove diagrams from the subVIs.
I am not exactly sure what you are looking for. If this doesn't help, please post more specific definitions of your needs, and we will try to help.