Cleaning up all data in tenant/tag


I need to remove all data created in a given tenant/tag,

Is it enough to just delete the tag and then the system will take care of removing everything for me?
I have to go through all persistable types and call removeAll() on them?

Is it going to be the same regardless if it’s Cassandra or Postgresql data?


Starting from 7.6, we can use:

Tag.get('tag_name').removeData(true, true)
1 Like

Do we know what roles/groups in 7.7 / 7.8 have access to this function?


In general you need to be a Developer or a Tenant/Tag admin to perform Tag operations. To determine the groups that have permission to invoke a method, use the Authorizer type.

Authorizer.actionAuthzRoles("Tag", "removeData")

1 Like