You can archive a message directly from the inbox in two ways:
Hover over the message and swipe right.
Hover over the message and click the Archive icon.