Is it the right approach to clear/remove all features from FeatureLayer and update FeatureTable?
clear(): void {
featureLayer.queryFeatures().then(featureSet => {
const edits = {
deleteFeatures: featureSet.features
};
featureLayer.applyEdits(edits)
.then(editsResult => {
featureTable.refresh();
});
});
}