suvaidkhan commented on issue #5529:
URL: https://github.com/apache/gravitino/issues/5529#issuecomment-2521214018
> DeleteTag deletes a tag from the system not removing it from an entity.
You'll need to call ListEntityTags then UntagEntity.
Still getting the same error -
"tagsToAdd and tagsToRemove cannot both be null"
used the listTags() to list all tags for that entity and then send that to
the associateTags() function for untagging
here's the code snippet -
```
else if (name.hasCatalogName()) {
String catalog = name.getCatalogName();
Catalog gCatalog = client.loadCatalog(catalog);
tags = gCatalog.supportsTags().listTags();
gCatalog.supportsTags().associateTags(null, tags);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]