how to kill all screen sessions code example
Example 1: linux screen kill attached session
screen -X -S SCREENID kill
Example 2: kill all screens linux
for scr in $(screen -ls | awk '{print $1}'); do screen -S $scr -X kill; done
Example 3: screen kill session
$ screen -X -S [session # you want to kill] quit
Example 4: kill all screen sessions linux
pkill screen
Example 5: kill all screens linux
screen -wipe