Answered
Remove selected items on active artboard
I have written the below javascript for the below actions. Remove command is not working.
1) select the objects on active artboard
2) remove the selected objects
var doc = app.activeDocument;
doc.selectObjectsOnActiveArtboard()
removeAll();
