Why does removing tags from a host take several hours?

Hi,

We have some logic that is tied to general host tags:

Host >  Properties and tags > Tags

Adding a tag to a host with a command works almost instantly.

/opt/dynatrace/oneagent/agent/tools/oneagentctl --set-host-tag=AppSomething=Enabled

However, removing the same tag can take hours. The problem is that while it is removed instantly from the OneAgent, it continues to be displayed in the SaaS GUI for a very long time, and until it disappears, the logic will not change.

/opt/dynatrace/oneagent/agent/tools/oneagentctl --remove-host-tag=AppSomething=Enabled

Does anyone knows why this is happening?

Hi @100grm,

In the CloudOps certification materials I have found this.

When does meta data/naming/tagging get applied:

:black_small_square: Tagging and naming rules: ~ 30s
:black_small_square: Manual/API based: immediately
:black_small_square: Via environment variables (for Process Groups): when process starts
:black_small_square: Via oneagentctl: Tags/Meta Data: ~5/10min delay
:black_small_square: Host name/host group: OneAgent restart

So in case of oneagentctl there is a delay, minutes not hours.

You should raise a support ticket with an example.

Best regards,

Mizső

Hi @Mizső ,

Via oneagentctl: Tags/Meta Data: ~5/10min delay - for us on the latest version of OneAgent and SaaS it is from 4 to 6 hours. Looks like there is no solution

Thx for your help

It looks like this is till the case in 2026. @100grm did you ever open a support ticket?

Hi @100grm

This is a known behaviour — tag removal via oneagentctl takes longer to reflect compared to adding tags.

When you remove a tag, the OneAgent stops reporting it — but the Dynatrace server-side doesn’t immediately purge it. The platform waits for a certain grace period (can be up to a few hours) before confirming the tag is truly gone.

Use the Dynatrace API to remove the tag server-side immediately.

Thanks,

Sujit