You are here

public function DrushDeleteCommands::all in Drush Delete All 3.x

Delete all contents.

@validate-module-enabled drush_delete

@command delete:all @aliases delete-all

Parameters

$type: The entity type name

File

src/Commands/DrushDeleteCommands.php, line 22

Class

DrushDeleteCommands
A Drush commandfile for Drush Delete All module.

Namespace

Drupal\drush_delete\Commands

Code

public function all($type) {
  $this
    ->output()
    ->writeln(\Drupal::service('drush_delete.entity')
    ->deleteAllEntityType($type));
}