If you want to delete all your posts and comments before leaving, tap the menu icon (☰) on your phone, select the three dots button (‧‧‧) below your name, and choose Activity Log. Then, click on Filter, select Choose Categories, tap Your group and event activities and choose Group membership activity. From there, select the group you wish to delete your posts and comments from, and tap the three dots icon to find the delete button.