Hello JASBIR442,
We want to get clarification on the steps you took to 'delete' this Apple ID.
Did you deactivate or permanently delete this Apple ID? If you deactivated the Apple ID, you can enable the account again to make changes, like removing your associated phone number: How to deactivate your Apple ID account - Apple Support
However, if you permanently deleted the Apple ID, there isn't much you can do. All account information would have been removed from Apple's servers, so you wouldn't be able to remove the associated phone number: How to delete your Apple ID account - Apple Support
Learn more about these self-service tools here: Understand and control the personal information that you store with Apple - Apple Support
Hoping to hear back, take care.