Terrorism very much does work. The Basque and the Northern Irish terrorists / freedom fighters have gotten a so many of their demands for autonomy met that they disbanded (in one case formally, in the other almost) because they weren't needed anymore. Taliban also got the US out from Afghanistan pretty handily with mostly terrorism.
The Taliban absolutely did not terrorism the US out of Afghanistan haha