How to delete an email directly from the gmail inbox using the keyboard?

If you are habituated to delete emails directly from the inbox by pressing the delete button in windows pc you might be disappointed while using gmail services for not being able to do so. Basically to do this for gmail you need to know the keyboard shortcuts.

Both for offline and online gmail, after opening a particular email which you are willing to delete, simply press the # key (i.e. shift+3 unless those special characters are enabled).