Hello, I have an Illustrator script to go through certain functions and after it runs there are items selected that I need deleted. I cannot figure out the simple script to remove the selected items. I tried
var docSelected = app.activeDocument.selection;
docSelected.selected.remove();
but to no avail. Please help. I would greatly appreciate any tips and suggestions as I just need to know how to have the script to delete selected items. Thank you very much!