macro to delete items from bom based on custom property

Hello this is my first question on here, 

im looking for a macro to delete the rows of parts that dont have a "Yes" on the custom property. i hope this makes sense. I will attach images to help explain. 

SolidworksApi/macros