Downgrading to a previous version of iOS will unenroll the iPhone from the Apple Beta Software Program.
1. Put the iPhone in Recovery Mode. Click here for instructions on how to enter Recovery Mode.
2. Click the Restore button in iTunes and allow the restore process to wipe the device.