Cannot delete an old iCloud account from my IPhone
You can remove an iCloud account by restoring the device using iTunes: connect it to iTunes and click Restore.

However, this does not disable the device's Find My iPhone status — if Find My iPhone is enabled on the iCloud account on the device then the device will be under Activation Lock and will require you to enter your Apple ID to use the device.