how to roollback to oreo stable version from pie beta

hi i want to restore oreo stable version on my phone what should i do