If you want to leave a WhatsApp community, open the group chat, tap the group name at the top, then scroll down and select [Exit Group]. Keep in mind that leaving a group is permanent and you won't receive messages from that group anymore.