Lol just yesterday I saw an eight year old answer on SO neatly solving my problem, except the API was hallucinated. Humans have been hallucinating APIs for far longer.
If the answer is from 8 years ago, did the API change between then and now? Or was the answer for the same version that you are using?
There is some imagined distinction between a hallucinated answer from a LLM and one from a person posting "try {random code}" that are both equally wrong - but only the LLM is deleted (because deleting the wrong answers are an attempt by a human to answer(?) or would hurt feelings / engagement (?)).