---
title: "delete_rule method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.dom.css/icssstylesheet/delete_rule/"
product: "Aspose.SVG for Python via .NET API References"
---


## delete_rule {#int}

Used to delete a rule from the style sheet.



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


| Parameter | Type | Description |
| :- | :- | :- |
| index | int | The index. |



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