screen close screen code example
Example 1: kill all screens linux
for scr in $(screen -ls | awk '{print $1}'); do screen -S $scr -X kill; done
Example 2: how to remove a screen session
screen -X -S enter_screen_id_here kill
Example 3: kill all screens linux
screen -wipe