There is no way to close a KeePass file without saving while having the "Automatically save when closing/locking the database" option turned on in Advanced settings. So, if you accidentally permanently delete an entry, you will be forced to save it as deleted with no way to prevent the deletion even though you never saved. Please add an option to close a KeePass file.
It's also really bad that there is no way to have a KeePass file auto-closed if a KeePass sub-dialog is opened. If someone breaks down your door as you're adding/modifying an entry, they will be able to then look at your keepass file unencrypted even if it takes them days to notice your PC. That makes KeePass unusable to store passwords compared to other password management software, but I know the developer wants it to be insecure in that way.
By "Please add an option to close a KeePass file.", I meant to say "Please add an option to close a KeePass file without being forced to save it."
Your feature request is a duplicate of
https://sourceforge.net/p/keepass/feature-requests/1705/
The sub-dialog behavior that you mentioned is already explained in the FAQ:
https://keepass.info/help/base/faq_tech.html#noautolock
Best regards,
Dominik
KeePass already warns you before you permanently delete an entry(s). If you want a pause to reflect before closing uncheck off "Automatically save when closing/locking the database" .
Otherwise, I suspect you are asking for a new dialog that only appears before closing if you made a permanent deletion during the current KeePass session. In my opinion as a user, this would be inadvisable because the user may have made multiple additional changes to the database during the same KeePass session. If KeePass closed the database without saving, the additional changes would be lost permanently. This could have serious adverse consequences.
Your best options are:
Last edit: wellread1 2025-10-23