## Delete(int) {#delete_1}

Removes index from collection by index.

```csharp
public void Delete(int index)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 | Image index. |

### See Also

* class [XImageCollection](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Delete(int, ImageDeleteAction) {#delete_2}

Removes image from collection by index performing action specified by action parameter.

```csharp
public void Delete(int index, ImageDeleteAction action)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 | Index of the image to be removed. |
| action | ImageDeleteAction | Action perfromed after image deleting. |

### See Also

* enum [ImageDeleteAction](../../imagedeleteaction/)
* class [XImageCollection](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Delete(string) {#delete_3}

Removes item from collection by name.

```csharp
public void Delete(string name)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Name of image which must to be deleted. |

### See Also

* class [XImageCollection](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Delete(string, ImageDeleteAction) {#delete_4}

Removes item from collection by name.

```csharp
public void Delete(string name, ImageDeleteAction action)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Name of image which must to be deleted. |
| action | ImageDeleteAction | Action to be performed with image object. |

### See Also

* enum [ImageDeleteAction](../../imagedeleteaction/)
* class [XImageCollection](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Delete() {#delete}

Deletes images from collection.

```csharp
public void Delete()
```

### See Also

* class [XImageCollection](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)


