Open the chat, tap the contact/group name, go to [Disappearing Messages], and select [On]. The messages will automatically disappear after 24 hours in that chat.