The documentation refers to collection-group BUT in datastore mode we have entity. I’m not sure whether the collection group is correct or not. I’m sure about the field because in the entity i have the field expireAt.
The command you have provided is correct syntax However it includes the --disable-ttl flag, which would disable the TTL policy for the specified field.
Since you mentioned that you want to create a TTL policy, you should remove the --disable-ttl flag and provide the necessary information to define the TTL policy.
Here’s an example of how you might create a TTL policy for the expireAt field in the Session collection group (or entity kind):
Sorry that command is the result of wrong copy/paste from my side. I have used enable-ttl flag to enable the TTL policy.
What I wanted to double check with the community were the collection-group flag. If you confirm that it is correct and it must correspond to the kind parameter passed then all good.