You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: `--object_ttl_time` is in seconds. Value of `0` is valid for property type (expire at exact date). Timestamp types (`create`/`update`) require a minimum of 60 seconds.
145
165
146
166
See [references/collections.md](references/collections.md) for full options.
**Note**: `--consistency_level` values must be **lowercase**: `one`, `quorum`, `all` (not `ONE`, `QUORUM`, `ALL`).
185
+
164
186
See [references/data.md](references/data.md) and [references/search.md](references/search.md).
165
187
166
188
### Tenants
@@ -222,6 +244,8 @@ weaviate-cli delete user --user_name test-user --json
222
244
223
245
Permission format: `action:target`. See [references/rbac.md](references/rbac.md) for full permission reference.
224
246
247
+
**Shell quoting**: Permissions with wildcards must be quoted to prevent shell globbing: `-p 'crud_data:*'` (not `-p crud_data:*`, which fails in zsh with `no matches found`).
**Prerequisite**: The Weaviate cluster must be deployed with `DYNAMIC_USERS=true` for `create user` to work. Without it, only static API key users (configured at deploy time) are available.
-`--object_ttl_time` -- Time to live in seconds (default: None, TTL disabled when omitted)
44
+
-`--object_ttl_filter_expired` -- Filter expired-but-not-yet-deleted objects from queries
45
+
-`--object_ttl_property_name` -- Date property name for TTL when `object_ttl_type=property` (default: "releaseDate"). **Only valid when `--object_ttl_type=property`**; rejected otherwise.
46
+
47
+
**Object TTL examples:**
48
+
```bash
49
+
# Delete objects 1 hour after creation
50
+
weaviate-cli create collection --collection Movies --object_ttl_type create --object_ttl_time 3600
51
+
52
+
# Delete objects 24 hours after last update, filtering expired objects
53
+
weaviate-cli create collection --collection Movies --object_ttl_type update --object_ttl_time 86400 --object_ttl_filter_expired
54
+
55
+
# Delete objects based on default date property (releaseDate)
56
+
weaviate-cli create collection --collection Movies --object_ttl_type property --object_ttl_time 0
57
+
58
+
# Delete objects based on a custom date property (e.g. for clusters not using weaviate-cli schema)
-`--object_ttl_property_name` -- Date property name when `object_ttl_type=property` (default: "releaseDate"). **Only valid when `--object_ttl_type=property`**; rejected otherwise.
80
+
81
+
**Object TTL examples:**
82
+
```bash
83
+
# Enable TTL: delete objects 2 hours after creation
84
+
weaviate-cli update collection --collection Movies --object_ttl_type create --object_ttl_time 7200
85
+
86
+
# Disable TTL on an existing collection
87
+
weaviate-cli update collection --collection Movies --object_ttl_type disable
88
+
89
+
# Set TTL by custom date property on an existing collection
0 commit comments