The flags will remain, only Alliance Fort and Alliance Institute will be removed
It is possible for you to move the Alliance Hall to another location. You will just have to connect the flags back to Alliance Hall territory. You also can relocate Alliance Institute without losing Alliance Technology progress.
You can see this by watching a YouTube video: