read the transcript!
Sometimes the buggy code is not worth salvaging and should be deleted entirely. Reasons you might do this:
Illustration of an uneasy-looking stick figure with curly hair. - it uses a confusing library / tool
person (thinking): this library isn’t working, I’m going to switch to Y instead
Illustration of the same person, now smiling. - you have a better idea for how to implement it
person (thinking): I bet I could avoid all these problems if I took X approach instead…