How exactly did you delete the Apple ID?
Did you have Apple delete it entirely from existence as shown in this Apple support document➜ How to delete your Apple ID account - Apple Support
If so, Apple advises that you must sign out of the device using the Apple ID before it is deleted, otherwise you may not be able to and the device may become unusable.
"Make sure that you sign out of all your devices to avoid issues with apps that use your Apple ID account or iCloud. After your account is deleted, you can't sign out of iCloud or turn off Find My iPhone Activation Lock on your devices. If you forget to sign out, you might not be able to use your device when your account is deleted."
If you did do that, then you will need to contact Apple Support directly and see if they can help you release the device from the deleted Apple ID. click here ➡️ contact Apple Support
If you did something else, then explain exactly what you did to "delete" this Apple ID.