Uninstall function in the datapack

If there is an uninstall.mcfunction file in my datapack, will it automatically execute when the datapack is disabled? Or can it only be executed using /function?

Continue to help post