diff --git a/src/Plugin/Menu/DeleteTab.php b/src/Plugin/Menu/DeleteTab.php
new file mode 100644
index 0000000..2d7d597
--- /dev/null
+++ b/src/Plugin/Menu/DeleteTab.php
@@ -0,0 +1,73 @@
+<?php
+
+namespace Drupal\trash\Plugin\Menu;
+
+use Drupal\Core\Menu\LocalTaskDefault;
+use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+class DeleteTab extends LocalTaskDefault implements ContainerFactoryPluginInterface {
+  use StringTranslationTrait;
+
+  /**
+   * @var \Drupal\content_moderation\ModerationInformation
+   */
+  public $moderationInformation;
+
+  /**
+   * The entity.
+   *
+   * @var \Drupal\Core\Entity\ContentEntityInterface
+   */
+  protected $entity;
+
+  /**
+   * Constructs a new DeleteTab object.
+   *
+   * @param array $configuration
+   *   Plugin configuration.
+   * @param string $plugin_id
+   *   Plugin ID.
+   * @param mixed $plugin_definition
+   *   Plugin definition.
+   * @param \Drupal\content_moderation\ModerationInformation $moderation_information
+   *   The moderation information.
+   */
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, $moderation_information) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+
+    $this->moderationInformation = $moderation_information;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
+    return new static(
+      $configuration,
+      $plugin_id,
+      $plugin_definition,
+      $container->get('content_moderation.moderation_information')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getRouteParameters(RouteMatchInterface $route_match) {
+    // Override the node here with the latest revision.
+    $this->entity = $route_match->getParameter($this->pluginDefinition['entity_type_id']);
+    return parent::getRouteParameters($route_match);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getTitle() {
+    return $this->moderationInformation->isModeratedEntity($this->entity)
+      ? $this->t('Move to trash')
+      : $this->t('Delete');
+  }
+}
\ No newline at end of file
diff --git a/trash.module b/trash.module
index c0577a4..8d509f9 100644
--- a/trash.module
+++ b/trash.module
@@ -5,8 +5,9 @@
  * Contains trash.module.
  */
 
-use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Entity\EntityTypeInterface;
 use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\trash\Plugin\Menu\DeleteTab;
 
 /**
  * Implements hook_help().
@@ -23,14 +24,18 @@ function trash_help($route_name, RouteMatchInterface $route_match) {
 }
 
 /**
- * Implements hook_entity_operation().
+ * Implements hook_local_tasks_alter().
  */
-function trash_entity_operation(EntityInterface $entity) {
-  if ($entity->getEntityTypeId() !== 'content_moderation_state') {
-    return [];
-  }
-
-  /** @var \Drupal\content_moderation\ContentModerationStateInterface $entity */
+function trash_local_tasks_alter(&$local_tasks) {
+  $entity_types = \Drupal::entityTypeManager()->getDefinitions();
+  $moderated_entity_types =  array_filter($entity_types, function (EntityTypeInterface $entity_type) use ($entity_types) {
+    return \Drupal::service('content_moderation.moderation_information')->canModerateEntitiesOfEntityType($entity_type);
+  });
 
-  return $operations;
+  foreach ($moderated_entity_types as $moderated_entity_type_id => $moderated_entity_type) {
+    if (isset($local_tasks["entity.$moderated_entity_type_id.delete_form"])) {
+      $local_tasks["entity.$moderated_entity_type_id.delete_form"]['class'] = DeleteTab::class;
+      $local_tasks["entity.$moderated_entity_type_id.delete_form"]['entity_type_id'] = $moderated_entity_type_id;
+    }
+  }
 }
