Deleting all tags for all users | Community
Skip to main content

Deleting all tags for all users

  • November 20, 2021
  • 10 replies
  • 0 views

Tzvika

Can someone share a script that will delete all the tags assigned to all users?

This will be very helpful.

 

Thank you!

10 replies

  • November 30, 2021
Hi T.Z,
 
Apologies for the delay! I can help with that. I'll spin up something for you in a bit that you'll be able to use and apply to your use case. 
 
Best,
 
Erica - Dev Support

  • December 1, 2021

Hi T.Z.!

I went ahead and spun up a little Zendesk App with the script for bulk deleting all tags from all users. I also included a script for deleting all tags for a specific user. 

You can check it out here: https://github.com/ericagirges/delete-tags-script

Please don't hesitate to let me know if you have any questions!

Best,

Erica - Dev Support


sphen11
  • December 1, 2021

@erica26 you make building an app look so easy! Thanks for sharing this. As a beginner it could prove really helpful to model an app like this for other things 😄


  • December 2, 2021

You're welcome @sphen11! I'm glad it's helpful. It's super bare bones so a lot of potential to develop more with it. If you any ideas for apps or projects please feel free to share them! Our team would love to tackle them.

All the best!

Erica - Dev Support


Tzvika
  • Author
  • December 5, 2021

Thanks so much Erica.


Tzvika
  • Author
  • December 7, 2021

I clicked on "This User" after installing the app and no tags got deleted. 

Any idea?


  • December 13, 2021
Hi T.Z.,
 
I'm so sorry. I was out of the office this past week. Let me go ahead and take a look at it again on my end and we can troubleshoot that.
 
Best,
 
Erica - Dev Support

  • December 15, 2021

Hi T.Z!

I took a look at the app and it is working as expected. I am showing the tags are deleted after submitting the request. Only thing is you need to manually refresh the page to see the changes. Very unfortunate, I know. I did spend some time trying to see if there was a way to force reload from within the app during/after the request. However, it isn't possible since we're executing within the iframe and we're unable to access the origin of the page itself.

Hope this helps!

Best,

Erica - Dev Support


Tzvika
  • Author
  • December 15, 2021

Looking at the Chrome Console I see the following error:

main.js:80 Uncaught (in promise) ReferenceError: checkYourWork is not defined
at main.js:80

 


  • December 16, 2021
Try pulling down the latest. I made some clean up changes that should fix that. 😊️
 
Best,
 
Erica - Dev Support