public function SearchApiSolrAdminCommands::deleteCollection in Search API Solr 4.x
Delete Solr collection.
@command search-api-solr:delete-collection
@usage drush search-api-solr:delete-collection server_id Forces the Solr server to delete the collection.
@aliases solr-delete-collection
Parameters
string $server_id: The ID of the server.
Throws
\Drupal\search_api\SearchApiException
\Drupal\search_api_solr\SearchApiSolrException
File
- modules/
search_api_solr_admin/ src/ Commands/ SearchApiSolrAdminCommands.php, line 89
Class
- SearchApiSolrAdminCommands
- Defines Drush commands for the Search API Solr Admin.
Namespace
Drupal\search_api_solr_admin\CommandsCode
public function deleteCollection(string $server_id) : void {
$this->commandHelper
->deleteCollection($server_id);
$this
->logger()
->success(dt('Solr collection of %server_id deleted.', [
'%server_id' => $server_id,
]));
}