-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.5.9
Feature type
New functionality
Proposed functionality
As Netbox administrators we'd love to have additional an additional safety check to prevent accidental deletes. The proposed change is the following:
- Be able to configure which object types require additional confirmation before deletion
- Add an input field to the delete modal for those objects that only enables the delete button if the user enters the required input.
This is very similar to how other systems prevent accidental deletes. For example, Github requires this type of user input when archiving a project.
I implemented a quick proof of concept in my fork to show the intended workflow. This doesn't have anything to make the confirmation required on some object types only, but it's enough to get the idea across. Here's a recording of the workflow:
Screen.Recording.2023-10-03.at.7.58.17.AM.mov
It goes without saying that I'm more than glad to contribute this feature if approved. I believe this would require some frontend changes, and a bit of fiddling around with the configuration to introduce a new field.
Use case
We use Netbox across our company to keep an inventory of assets, drive automation, and configuration management. If someone accidentally deletes an object it can have side effects that are difficult to track, and undo. To prevent this, we'd like to be able to protect a little bit better some object types. We already prevent deletion of some object types using permissions and conditions, but that isn't always enough as some resources still need to be modified by many people, and the more people we have making changes, the greater the chances of blunders. This new feature would make people even more aware of the change they are making.
Database changes
None
External dependencies
None