question for those with technical know-how: is there a way to locate and delete a specific entity in the save file of a singleplayer world? if not, does anyone have tips or advice for getting a wither out of the ceiling with no elytra?

i spawned a wither in a lush cave and i can't get rid of it (cheats are off and i've lost all my stuff to it twice). it's driving me nuts even with hitboxes on. i don't really have wither-fighting experience. any and all help would be appreciated

(this is java 1.21.8; if the only answer to this problem is stocking up on high quality armor and tools, i will do that, but that's sort of my last resort atm)
Wither Problem Please Help Me