The .attrib member of the element object contains the dict of attributes – you can use .pop("key") or del like you would on any other dict to remove a key-val pair.
The .attrib member of the element object contains the dict of attributes – you can use .pop("key") or del like you would on any other dict to remove a key-val pair.