Well, the following syntax removes the modifier’s subsurf.
But this is only the one with the name subsurf. That is, duplicate modifiers with _001 and _002 cannot be deleted.
I checked the syntax of python and checked api, but the * wildcard does not seem to work.
How can python be able to remove modifiers with _001 and _002 in their names? As with other objects, are regular expressions not supported?