Yes, that's a possibility, but in my case the deletion of the geodatabase depends on the data within the database, so I need to open the db to check if the file is eligible for deletion. Of course I could to this in two phases, first phase being the check to save the filenames pending for deletion and so on...
Thanks anyway for the response.