How to remove all order tags using flow?

Is there a way to remove all/any order tags from an order using flow, without knowing ahead of time what the tag that you want to remove is?

This functionality is not currently available in Flow but it’s an interesting case. Can you share more about the use case, why do you need to remove them all?

Several of our apps (and even some of shopify’s built in functions) add tags to orders like discounts, order codes, etc… misc stuff that usually helps in some cases. However, we use tags to aid in reporting and prioritizing for fulfillment, and the service that we use for that gets confused when it sees more than it’s expecting. So we’re attempting to use flow to remove tags, analyze order conditions, and then add tags back in that will allow our other systems to automatically recognize and process orders as they are imported.

As mentioned this is not available but and interesting use case. I wonder if Metafields could help some of your work (the also work with Flow).

Hi @Kronos9326 You can try the app Auto tag to remove all tags you mark the previous time.
It also has reprocess feature: it can run to process all old orders.
If you have any difficulty, please let me know.

Based on your description, you should be able to do this with for by putting {% for tag in order.tags %}{{ tag }},{% endfor %} into the “Remove Order Tags” action like and pressing enter. This will output will output a comma-separated list of tags, which is just what you need.

1 Like

You can use liquid inside flow? Wow… didn’t know that.

A lot of useful info and examples on the subject are in the variables Flow help page.