| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Nord\Lumen\Elasticsearch\Console; |
||
| 25 | public function handle() |
||
| 26 | { |
||
| 27 | $index = IndexNamePrefixer::getPrefixedIndexName((string)$this->argument('index')); |
||
| 28 | |||
| 29 | $this->info(sprintf("Deleting index '%s' ...", $index)); |
||
| 30 | |||
| 31 | $this->elasticsearchService->indices()->delete(['index' => $index]); |
||
| 32 | |||
| 33 | $this->info(sprintf("Index '%s' deleted.", $index)); |
||
| 34 | |||
| 35 | return 0; |
||
| 36 | } |
||
| 38 |