Only automatic way I see is to programmatically export the object into text file, "automatically" edit it (remove what you do not need), import it back and compile. It could be done through code or powershell for NAV 2013. But question is, if it is worth of it. Because may be there is easier manual way of doing what you need...
In the NAV code editor (AKA Notepad 0.9) you can use CTRL+A to select all lines and use F4 to delete them. Then delete all Global Variables, Text Constants and Functions.
Or all is just question of correct keys pressed in correct order (like Ctrl+A,Delete,Ctrl+PgDn,...). You can create macro for that with tools supporting macros for any application. Than it is just question of running the macro... ;-)
Comments
Only automatic way I see is to programmatically export the object into text file, "automatically" edit it (remove what you do not need), import it back and compile. It could be done through code or powershell for NAV 2013. But question is, if it is worth of it. Because may be there is easier manual way of doing what you need...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
5 seconds job.
i have to do it for 217 tables, that's why am looking for some other dynamic way
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
Are you on an upgrade path? I have created a beyond compare script for this but it lacks documentation.
If you really in a hurry send me a PM and I can do it for you in 5 minutes.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.