Closed (fixed)
Project:
Trash
Version:
3.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Jan 2026 at 15:22 UTC
Updated:
10 Feb 2026 at 17:39 UTC
Jump to comment: Most recent
The entity:delete Drush command could use some special handling when the Trash module is installed.
I propose adding the following option to the entity:delete Drush command through the use of hooks:
--skip-trash: Permanently delete entities instead of moving to the trash. This includes already trashed entities.
It would be nice to have the possibility to only permanently delete new entities instead of both new and already trashed entities, but it seems like this isn't possible by only switching contexts.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dieterholvoet commentedComment #4
amateescu commentedI like the approach here, left some comments on the MR.
I assume this works with the 3.x branch as well (which still supports Drupal 10.3), right?
Comment #5
dieterholvoet commentedLooks like the 3.x has the same minimum Drush version, so yes.
Comment #8
amateescu commentedMerged into 3.1.x and backported to 3.x, thanks!