
## delete_rule {#str}

The deleteRule method deletes the CSSKeyframeRule with the passed key. If a rule with this key does not exist, the method does nothing



```python
def delete_rule(self, key):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| key | str | The key which describes the rule to be deleted. The key must resolve to a number between 0 and 1, or the rule is ignored |



### See Also
* module [`aspose.svg.dom.css`](../../)
* class [`ICSSKeyframesRule`](/svg/python-net/aspose.svg.dom.css/icsskeyframesrule)
