Skip to content

Commit 3a95672

Browse files
kingjia90claude
andcommitted
doc: add cleanup command to index management docs
Add generic-data-index:cleanup:unused-indices to the console commands overview table and document the command under a new "Cleaning Up Unused Indices" section in Deployment and Index Management. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 40b752e commit 3a95672

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

doc/02_Configuration/03_Index_Management.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ to power search and listing features in Pimcore.
1616
| `generic-data-index:update:index -r` | Delete and recreate indices, then queue all elements |
1717
| `generic-data-index:reindex` | Native search engine reindex (reorganizes data within existing indices, no database read) |
1818
| `generic-data-index:deployment:reindex` | Update indices only for class definitions changed since the last deployment |
19+
| `generic-data-index:cleanup:unused-indices` | Delete managed indices not referenced by any alias (`-odd`/`-even` suffixes only) |
1920

2021
## Index Prefix
2122

@@ -190,3 +191,18 @@ bin/console generic-data-index:deployment:reindex
190191

191192
This updates the index structure for all class definitions modified since the last
192193
deployment and reindexes data objects for affected classes.
194+
195+
### Cleaning Up Unused Indices
196+
197+
To clean up managed indices that are no longer referenced by any alias, run:
198+
199+
```bash
200+
bin/console generic-data-index:cleanup:unused-indices
201+
```
202+
203+
This only targets indices with the configured prefix and a `-odd` or `-even` suffix.
204+
To preview deletions without making changes, use `--dry-run`:
205+
206+
```bash
207+
bin/console generic-data-index:cleanup:unused-indices --dry-run
208+
```

0 commit comments

Comments
 (0)