Introduce a new "Allow immediate deletion" application setting
Split into several MRs:
- Add the allow_immediate_namespaces_deletion app... (!205554 - merged)
- Add support for allow_immediate_namespaces_dele... (!205556 - merged)
- Support disabled deletion section in group/proj... (!205563 - merged)
- Check `Allow immediate deletion` admin setting ... (!205567 - merged)
- Support disabled immediate deletion in groups a... (!205572 - merged)
What does this MR do and why?
This change replaces a feature flag system with a proper admin setting for controlling "immediate deletion" of groups and projects. Previously, there was a temporary feature flag that could prevent users from immediately deleting items that were scheduled for deletion (bypassing the safety waiting period). Now, administrators can configure this behavior through the admin settings panel with a new checkbox option called "Allow immediate deletion."
The new setting is enabled by default, meaning users can still immediately delete scheduled items. However, on GitLab.com and Dedicated, this setting is automatically disabled for safety reasons (through a post-deploy migration for existing installations, production fixtures for new installations, and through model validation to ensure it cannot be enabled). The change includes a new admin interface where administrators can toggle this setting, updated documentation explaining the feature, and removes the old feature flag code.
The practical impact is that administrators now have proper control over whether users can bypass deletion protection periods, with a cleaner interface and more predictable behavior than the previous feature flag system.
This new feature is itself behind a new allow_immediate_namespaces_deletion WIP feature flag so that we can introduce all the changes in several MRs without providing a unfinished experience to users.
References
Screenshots or screen recordings
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.





















