iTerm2 shortcut for deleting selected
Remove characters on the left, until the beginning of the word: Ctrl+W
Clean up the line: You can use Ctrl+U to clear up to the beginning.
Recall the deleted command: Ctrl+Y
Cancel the current command/line: Ctrl+C