##  delete_shape(self, shape) {#aspose.cells.drawing.Shape}
Löschen Sie eine Form. Wenn die Form zur Gruppe gehört oder eine Kommentarform ist, wird sie nicht gelöscht.



```python

def delete_shape(self, shape):
    ...
```


| Parameter| Typ| Beschreibung|
| :- | :- | :- |
| shape | [`Shape`](/cells/python-net/de/aspose.cells.drawing/shape) |  |

###  Beispiel

```python

# add first shape
firstShape = shapes.add_rectangle(2, 0, 2, 0, 50, 50)
# add second shape
secondShape = shapes.add_rectangle(6, 0, 2, 0, 30, 30)
# del
shapes.delete_shape(firstShape)

```



###  Siehe auch
* Modul [`aspose.cells.drawing`](../../)
* Klasse [`ShapeCollection`](/cells/python-net/de/aspose.cells.drawing/shapecollection)
