I am populating a Feature Layer with the spatial features contained withing a Shapefile.
Attached is a snip of that code: In that code I am assigning the shapefile to the Feature Layer "featureLayerSF"
Everything works fine and I can add the shapefiles. Although in my case I only want to have one shapefile added at a time.
My question is how do I remove the data inside "featureLayerSF" before the newly chosen shapefile spatial contents are added to the "featureLayerSF"
Any ideas would be very appreciated. Or code snips....