This should be:
```php
$this->io->write(sprintf('Deleting %s - %s', $this->getInstallPath($package), $this->deleteDirectory($this->getInstallPath($package)) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
```
So code below can be removed.