It's really simple to do that. All shapes and custom paths have a Visible boolean property. If you set it to false the shape/custom path will not be shown. If you have a composite shape the paths it is composed of are stored in its Primitives collection.
Best Regards,Nevron Support Team