List all flask processes:
flask
pgrep -a -f flask
Select the ones you want to stop.
Kill them:
kill -9 PROCESSID
where PROCESSID is at the beginning of pgrep output.
PROCESSID
pgrep