I have a few questions maybe some fellows could help me with. I am very new to this macro stuff. I have been working on a macro to build cutting tools. I don't have a clue how to get it to suppress or delete something if a box is checked or lets say if there is a text field that says yes or no. I would like to be able to select the style of flutes in a field and have it delete the other sub folder. For instance, if I have a box that says flute style straight, I want it to delete the folder called spiral flute and all the data in it. at the same time delete the coolant data that is linked to that flute style. I think if I seen some code how to delete or suppress a folder I could take it on to the other challenges with my model template. I am attaching my current macro, the model and some screen shots for some clarity. Thanks in advance for any help!!!
if the product code is fpz i want it to leave the flutes on. if it is SRB I want it to surppress the whole flute folder.
If nib is checked I want it to un-suppress the "NIB feature"
If the flute type is straight delete spiral flute folder and spiral flute coolant folder
If the flute type is spiral delete the straight flute folder and the spiral flute coolant folder

You can do this with a macro. But wouldn't it be better to use configurations and just switch between them?
I do use configurations. I am building this macro so people without the skill set of solidworks can plug in data and have it generate the parts we make. I am trying to have this macro "dumb" down my part tempkate which had everything I can almost imagine prebuilt in it.
I would recommend to add the button to your form so you can only do any activity when this button is pressed (instead of immediately handling the check box selection or drop down list change). If you add this button and just click on it in the designer default handler function will be pregenerated for you so you can paste code inside.
All your controls (i.e. check boxes and combo-boxes do have names). And you can query their values to see if it is checked. For example checkbox1.Value would tell you if the checkbox1 is checked. Based on this value you can control your features. I have created a macro which deletes all the content of the folder (as it is not very straightforward to do it via API). You can use similar techniques in your macro: Code Stack: Delete Feature Folder With All Children Features
Have you also considered Configuration Publisher? As this would allow you to utilize the design tables and property page interface to control your model (you cannot delete features but you ca suppress).
Here are some reference links:
SolidWorks Configuration Publisher: Taking File Configuration to the Next Level
2017 SOLIDWORKS Help - Configuration Publisher
You can also do some advanced stuff like connecting to database to get some values avoiding any programming: Modeling the Parametric Window in SolidWorks with custom UI and database connection - YouTube
Another option is using DriveWorks.
Thanks aa bunch. I'll look into the examples you have posted. I have been looking into driveworks and this is ultimately where I'm headed with this. I am waiting for it reseller to offer a driveworks class for me. We have been taking for a couple years about this. In the meantime I'm trying to maybe automate this process with a macro that dumbs this Master template of mine down without going into it and deleting things manually.
Would it be a simple task to have this macro you have instead of manually selecting the feature folder just have it look at a name and if it matches delete it and its contents?
Yes, in the example I have provided there is a GetFeaturesInFolder method which returns the list of the features in the folder and you can get the folder feature by name using the PartDoc::FeatureByName method.
I really don't know a lot about this I just took an API class a while ago but knew nothing of it before that class. I would literally pay someone to help me with some of this!! The sample you mentioned, could I copy paste it in my form and have it look for a folder name to delete that I have in combobox? I think if I select straight flute, it will look to delete a folder called spiral flute. If i select spiral it will delete a folder called straight flute. What would it be worth to you to to make that happen? I wouldn't even expect you to post the code anywhere but show me somehow it works and I'd pay send you a money order or something!! I'm thinking about tackling this in Driveworks as well.
I would recommend to go ahead with DriveWorksXpress (a free add-in inside SW since 2008). With that it would be much more easier to do the things you're looking for.