Hi @jamieking89
Keep in mind that if you attempt to delete a feature with dependent items (other features or sketches, etc) you will see an error... adding a resume next line should catch and silence those errors.
Also, just a reminder that the the Inventor Customization forum is the better forum for ilogic and coding questions:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
Here is a previous topic on that forum that relates to your question:
https://forums.autodesk.com/t5/inventor-customization/ilogic-delete-suppressed-features-and-un-used-...
I've asked the moderators to move your this topic to that forum.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Dim oFeature As PartFeature
oFeatures = ThisApplication.ActiveDocument.ComponentDefinition.Features
On Error Resume Next
For Each oFeature In oFeatures
'get the name of the feature
oName = oFeature.Name
'if the feature is not active (suppressed)
If Feature.IsActive(oName) = False
'delete it
oFeatures(oName).delete
End If
Next