Once you have a passcode on your device, there's only 2 ways to remove it:
1. You need to know, and enter the passcode,
2. Restore the device to factory settings.
If you have an itunes, or icloud backup, you can restore from the backup after restoring the device as new to remove the passcode.