Custom app reinstall alone?

i have site with custom app
i take backup with files
then i uninstall the app and do migrate
then i restore the backup to restore the data
the app reinstall by itself
is this logic??

Yes, as per my understanding, when you uninstall a custom app from a site and perform a migration, the app might reinstall itself upon restoring the backup. This occurs due to the nature of the backup and restore process, which includes both data and configurations. If the app was part of the site’s configuration before the backup, it will be reinstated along with other configurations when the backup is restored. This logic ensures that the site is restored to its previous state comprehensively, including any customizations or apps that were previously installed.

Thank You!

if i remove the custom app from app folder
what will happened when reinstall the backup
it will reinstall the unfound app?

Module/app not found if you remove the app from the app list.

what do you mean by " the app list"
the folder or specific file?

mean app folder.

okey thanks