This is already called automatically from flatpak_dir_deploy_update. In particular, in the system-installed case this will cause a warning due to not being able to remove the old checkout with permission denied.