## XImageCollection::Delete() method


Deletes images from collection.

```cpp
void Aspose::Pdf::XImageCollection::Delete()
```

## See Also

* Class [XImageCollection](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImageCollection::Delete(const System::String\&) method


Removes item from collection by name.

```cpp
void Aspose::Pdf::XImageCollection::Delete(const System::String &name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const System::String\& | Name of image which must to be deleted. |

## See Also

* Class [String](../../../system/string/)
* Class [XImageCollection](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImageCollection::Delete(const System::String\&, Aspose::Pdf::ImageDeleteAction) method


Removes item from collection by name.

```cpp
void Aspose::Pdf::XImageCollection::Delete(const System::String &name, Aspose::Pdf::ImageDeleteAction action)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const System::String\& | Name of image which must to be deleted. |
| action | Aspose::Pdf::ImageDeleteAction | Action to be performed with image object. |

## See Also

* Class [String](../../../system/string/)
* Enum [ImageDeleteAction](../../imagedeleteaction/)
* Class [XImageCollection](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImageCollection::Delete(int32_t) method


Removes index from collection by index.

```cpp
void Aspose::Pdf::XImageCollection::Delete(int32_t index)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | [Image](../../image/) index. |

## See Also

* Class [XImageCollection](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImageCollection::Delete(int32_t, Aspose::Pdf::ImageDeleteAction) method


Removes image from collection by index performing action specified by action parameter.

```cpp
void Aspose::Pdf::XImageCollection::Delete(int32_t index, Aspose::Pdf::ImageDeleteAction action)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | Index of the image to be removed. |
| action | Aspose::Pdf::ImageDeleteAction | Action perfromed after image deleting. |

## See Also

* Enum [ImageDeleteAction](../../imagedeleteaction/)
* Class [XImageCollection](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
