In the menu there are several useful features, including 'Delete'.
Press 'Delete' and confirm in the following dialog box that you really want to delete the module.
Note: If the module is shared and you delete it, you must choose whether you want to delete all the module instances or only the current.