system.tag.removeTag("") removes all tags on gateway

I found out today that system.tag.removeTag("") will delete all tags configured on the gateway.

You could argue that the "" path is all tags in the system. However, should this be the expected behavior when system.tag.exists("") returns false?

I am not sure if this is desired behavior or not but figured I would at least post here for discussion.

I should note the docs for this function were quietly updated to reflect this observation shortly after I posted this, I was hoping for an IA response but I think as long as the docs are updated i’m satisfied.

Sorry - we did update the docs as a temporary measure, but updating the function so that this doesn’t happen did make it onto the roadmap to be fixed in 7.9 and 8.0.

No worries :slight_smile: As always, thanks for the response.

1 Like