How to delete a word in iTerm in mac os
Go to your iTerm preferences select "profiles" then "key" and change your presets in "Natural Text Editing"
It should work immediately after.
It works with iTerm version 3.3.12
Edit:
In version 3.4, there's a slight UI change.
So you need to go specifically to your iTerm preferences select Profiles
> Keys
> Key Mappings
> Presets
> Nature Text Editing
This helped me.
Delete a word - Send Hex Codes - 0x1b 0x08
or 0x17
Delete a line - Send Hex Codes - 0x15