Skip to main content
Inspiring
August 10, 2026
Question

tags.removeAll() doesn't work

  • August 10, 2026
  • 1 reply
  • 9 views

in illustrator scripting tags.removeAll() doesn’t seem to do anything

example:

selection[0].tags.add()

alert(selection[0].tags.lengh) // result = 1

selection[0].tags.removeAll() // no errors

alert(selection[0].tags.lengh) // result = 1

// but remove individual tag works

selection[0].tags[0].remove()

alert(selection[0].tags.lengh) // result = 0

what give? I can loop and remove all tags that way but that’s not fun.

1 reply

jduncan
Community Expert
Community Expert
August 11, 2026

It has been quite some time since I looked into this but I’m pretty sure the consensus was you have to loop over them all unfortunately 🤦‍♂️.