Gmail has two different ways to remove emails from your inbox:
Archiving removes an email from your inbox, while still keeping it around in the All Mail category. While you won't see it in the inbox anymore, you will still be able to see it in search results. Archived emails will never be automatically deleted.
Deleting an email sends it to the Trash folder, where it will still be accessible for 30 days before it's removed entirely.