Welcome to iMore! If you're using iMessage to send/receive messages then there is nothing that I know of to autodelete certain threads. Doing so means that you'd be giving a third party permission to access your iMessage account and Apple simply doesn't allow that to happen.