All Magento modules
Admin safety · Magento 2 module
Magento 2 Confirm Delete Actions.
Add a second safety check to destructive Magento Admin mass actions.
A small, MIT-licensed Magento 2 and Adobe Commerce module that reduces accidental mass deletion. Normal delete selections receive a final warning; large selections require the administrator to type an exact confirmation phrase.
What the module does
- Keeps Magento's normal first confirmation dialog in place
- Adds a separate final warning before a destructive mass action runs
- Requires DELETE plus the selected count for more than 20 records or Select All
- Protects standard and tree-style mass-action menus, including the product grid
- Recognises delete actions from their type, label or URL, including massDelete
- Lets custom actions opt in and override the typed-confirmation threshold
Install with Composer
composer require confirm-actions/magento2-confirm-actions
bin/magento module:enable ConfirmActions_MassDelete
bin/magento setup:upgrade
bin/magento cache:flushConfigure and use it
- 1Install and enable the module; recognised mass-delete actions are protected automatically.
- 2For a custom action, add confirmDelete to opt in explicitly.
- 3Set typedConfirmationThreshold per action when the default threshold of 20 is not appropriate.
Need help implementing it?
Install, extend or build a Magento module around your business.
I build and maintain Magento modules, integrations and operational workflows for UK ecommerce businesses.
