Blender Version
The issue occurs at Blender 3.1 (as for today).
Short description of error
Removing all keyframes in for loop fails with exception RuntimeError: Error: Keyframe not in F-Curve
Exact steps for others to reproduce the error
- Open file
- Run script