Choose Mailbox > Delete Mailbox.
If you have problems deleting a mailbox on the server for an Rebuild mailboxes in Mail on Mac