Share this page

# LrSqsClient.untagQueue

Removes tags from the LrSqsClient's current queue.

`public static void untagQueue(Collection<String> tagKeys)`

## Arguments

Name | Description
--- | ---
tags | Tags to be removed from the queue.

## Return values

This function does not return any values.

## General information

This API removes the tags specified in the tags argument from the queue. For details about the SQS tags, see the Amazon SQS documentation.

## Example

Copy code

    public void tags(){
            LrSqsClient.initClient(region, fifoQueueUrl);
            Map<String, String> allTags = LrSqsClient.listQueueTags();

            for (Map.Entry<String, String> entry : allTags.entrySet()){
                lr.output_message("key: " + entry.getKey() + " value: " + entry.getValue());
            }

            LrSqsClient.tagQueue(new HashMap()
                    {{
                          put("tag1", "tagvalue1");
                     }});

            allTags = LrSqsClient.listQueueTags();

            for (Map.Entry<String, String> entry : allTags.entrySet()){
                lr.output_message("key: " + entry.getKey() + " value: " + entry.getValue());
            }

            LrSqsClient.untagQueue(new ArrayList()
                    {{
                          add("tag1");
                     }});

            allTags = LrSqsClient.listQueueTags();
            for (Map.Entry<String, String> entry : allTags.entrySet()){
                lr.output_message("key: " + entry.getKey() + " value: " + entry.getValue());
            }

            LrSqsClient.closeClient();
      }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: