screen quit session code example
Example 1: how to remove a screen session
screen -X -S enter_screen_id_here kill
Example 2: screen quit session
# First, find the session you want to quit
screen -ls
# Quit the session
screen -XS [session identifier you want to quit] quit
Example 3: kill screen session from outside
screen -X -S [session # you want to kill] kill