I was a bit hasty, the patch actually does work like that! I just had the old database still instanciated and not re-loaded, so the deleted Identity still showed up. But it has been deleted from the database by RecognitionDatabase::deleteIdentity!