The database is located in Recently Deleted

The problem

When you open a database, KeePassium shows a warning message:

Database is located in Recently Deleted and might be deleted soon. To preserve your data, move the file to a more permanent location.
Database bevindt zich in Recent verwijderd en kan binnenkort worden verwijderd. Verplaats het bestand naar een meer permanente locatie om uw gegevens te bewaren.
KeePassium screenshot with a message: Database is located in Recently Deleted and might be deleted soon. To preserve your data, move the file to a more permanent location.
Alert with the warning message.

Why it happens

This happens because the database was either deleted manually or replaced by another file. If the file is stored locally on device or in iCloud Drive, the system does not immediately delete the file. Instead, the file is moved to a special location for recently deleted files:

Files app screenshot showing the Recently Deleted folder with the database.
Deleted database in Recently Deleted folder in Files.

The system keeps such files for 30 days and then deletes them permanently.

By using a recently deleted database, you risk losing your data — that’s why KeePassium shows the warning.

How to fix it

On-device database

If you stored your database locally on device, you only need to move the file back to its original location:

  • Open the Files app
  • Tap Browse at the bottom of the screen
  • Choose Recently Deleted location and find your database there
  • Long-press the database and select Recover

The system will move the file back to its original location and the file won’t be scheduled for deletion anymore.

Context menu for recovering a deleted file.
Context menu for recovering a deleted file.

Cloud-based database

For cloud-based database, the issue can be also caused by multi-stage saving in KeePass/KeePassXC. By default, instead of updating database content they delete the original file and create it again. Some clouds follow the deleted file instead of recognizing the recreated one, hence the error.

  • Re-add your database to fix the immediate problem:
    • Open KeePassium and go to the list of databases
    • Long-press the database → Remove
    • Tap + and select your database again
  • Modify desktop app settings to prevent the issue in the future:
    • KeePassXC: open settings → GeneralBasic SettingsFile Management, and turn off the option Safely save database files (may be incompatible with Dropbox, etc).
    • KeePass: ToolsOptionsAdvancedFile Input/Output ConnectionsUse file transactions for writing databases → turn it off.

See also