public function WebformCommands::drush_webform_purge in Webform 8.5
Same name and namespace in other branches
- 6.x src/Commands/WebformCommands.php \Drupal\webform\Commands\WebformCommands::drush_webform_purge()
Purge webform submissions from the databases
@command webform:purge
@option all Flush all submissions @option entity-type The entity type for webform submissions to be purged @option entity-id The ID of the entity for webform submissions to be purged @usage drush webform:purge Pick a webform and then purge its submissions. @usage drush webform:purge contact Delete 'Contact' webform submissions. @usage drush webform:purge ::all Purge all webform submissions. @aliases wfp,webform-purge
Parameters
$webform_id A webform machine name. If not provided, user may choose from a list of names.:
File
- src/
Commands/ WebformCommands.php, line 125
Class
- WebformCommands
- Webform commands for Drush 9.x.
Namespace
Drupal\webform\CommandsCode
public function drush_webform_purge($webform_id = NULL, array $options = [
'all' => FALSE,
'entity-type' => NULL,
'entity-id' => NULL,
]) {
$this->cliService
->drush_webform_purge($webform_id);
}