Tap Settings, then tap General.
Scroll down to the bottom of the menu, then tap Profiles & Device Management. You should see two profiles listed.
Tap on the first profile and scroll to the bottom. Select Remove Management and then confirm the selection.
Tap on the second profile and scroll to the bottom. Select Delete Profile and then confirm the selection.