The defensive walls gradually became obsolete .
The defensive walls gradually were mostly removed together with the town gates in 1789 .
The defensive walls gradually became obsolete and were mostly removed together with the town gates in 1789 .