close screen detached code example
Example 1: kill screen
$ screen -X -S [session # you want to kill] quit
Example 2: how to remove a screen session
screen -X -S enter_screen_id_here kill
$ screen -X -S [session # you want to kill] quit
screen -X -S enter_screen_id_here kill