verification failed on an ipad that’s using a deleted apple id

my old apple ID got deleted from my phone, and my ipad used the same apple id. i forgot to sign off from the apple id on my ipad before using my phone to delete my apple id and now when i try to put in my icloud password whenever i’m trying to factory reset it either says “verification failed” or that the apple id doesn’t exist. How can i factory reset if my ipad won’t let me put in my password? :((
verification failed on an ipad that’s using a deleted apple id
 
 
Q