Skip to main content
Inspiring
Aug 10, 2026 3:22 AM UTC
Answered

tags.removeAll() doesn't work

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.

jduncan
jduncanCorrect answer
Community Expert
Aug 11, 2026 1:39 AM UTC

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 🤦‍♂️.

2 replies

jduncan
Community Expert
jduncanCommunity ExpertCorrect answer
Community Expert
Aug 11, 2026 1:39 AM UTC

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 🤦‍♂️.

Translate
mecdosAuthor
Inspiring
Aug 11, 2026 3:45 PM UTC

bummer. 

Translate