Hi, i get the following link How to remove all graphics from view to remove graphics from layer.
I also want to remove all polygons from graphics layer but its not working in my case as below:
//Clear all graphics
jQuery('#main').on('click', '.clear_all', function(){
view.graphics.removeAll();
});