How do I remove a property from a Feature (or FeatureCollection), by only specifying the name of the properties I want to remove? I know I can "remove" by selecting only properties I want, but in my case it is quite cumbersome…
For the minimal example in code below (see also link), how to remove property color?
var features = [
ee.Feature(ee.Geometry.Point(-73.96, 40.781), {name: 'Thiessen', color: "a"}),
ee.Feature(ee.Geometry.Point(6.4806, 50.8012), {name: 'Dirichlet', color: "a"})
];
// Create a FeatureCollection from the list and print it.
var FC = ee.FeatureCollection(features);
print(FC);
// Now I want to remove property color in each feature?
Best Answer
You have to make a function to do that and then apply it to the collection:
link