- Issue created by @murz
- 🇩🇪Germany mkalkbrenner 🇩🇪
The action already exists. But due to the fact that it is a dangerous action, it is part of the search_api_solr_admin module!
And it is not part of the index but of the server: "Delete all indexed data on this server" - Status changed to Fixed
almost 2 years ago 8:45am 12 June 2023 - 🇦🇲Armenia murz Yerevan, Armenia
Thank you for pointing this out, that's good that we already have it:
drush search-api-solr:devel-delete-all [server_id]
But It's part of the
search_api_solr_devel
module, not thesearch_api_solr_admin
, and "search_api_solr_devel" is too technical to keep it enabled just for the ability to fully clean the index, it even has a dependency on "drupal/devel" module!So, could you please move this feature to the search_api_solr_admin module?
And it still can delete only all indexed data from the server, without the ability to "fully" clean only the specific index, so would be good to extend it.
- 🇩🇪Germany mkalkbrenner 🇩🇪
Sorry, you're right it is part of search_api_solr_devel.
Nevertheless I considered the feature too dangerous to turn it into a regular feature. You can easily corrupt your multisite setup or a foreign index (Solr Doucument datasource). That's why I put it into the devel context.
But you can convert this issue into a feature request and provide the corresponding patch. But we need to add explicit documentation and additional checks about the nature of the Search API server (read-only, multisite, etc.).
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 19 hours ago 9:44am 16 May 2025 - 🇩🇰Denmark ressa Copenhagen
Thanks @kalkbrenner for maintaining Solr in Drupal. @murz: Your suggestion about adding support for indexes as well is great. I added a documentation page a while ago, and was reminded that the command works on Solr server, not index, and added a note about this.
https://www.drupal.org/docs/8/modules/search-api-solr/search-api-solr-ho... →