and it decides to delete all that functions as default
I guess you are using the --force
flag, and so it is deleting the functions.
To prevent function to be deleted and it will not have the question to decide if should delete or not, pass the --non-interactive
flag and DON'T pass the --force
flag