On the iOS device such as the iPhone or iPad, The only way to remove a restriction code is to restore from a backup that precedes applying the code. If this was set originally with the code then the only option you have is to reset to factory condition: Settings > General > Reset > Rease All Content and Settings. Then re-download all of your apps and content.