Delete all modifiers at one click

I’m sorry but I’m very new to coding and I spent the last 3 hours to understand this but had failed…
I try to assign a simple key with the function to delete every modifier (including f-Curve for animation) at one click.
Does anyone know how to do that?

something like…

while obj.modifiers: obj.modifiers.remve(obj.modifiers[0])

You would need to have this within an operator which binds to a key.