[comment]: # ({46b153da-46b153da})
# image.delete

[comment]: # ({/46b153da-46b153da})

[comment]: # ({359d1812-359d1812})
### Description

`object image.delete(array imageIds)`

This method allows to delete images.

[comment]: # ({/359d1812-359d1812})

[comment]: # ({c7ef61f7-c7ef61f7})
### Parameters

`(array)` IDs of the images to delete.

[comment]: # ({/c7ef61f7-c7ef61f7})

[comment]: # ({4b3e57f6-4b3e57f6})
### Return values

`(object)` Returns an object containing the IDs of the deleted images
under the `imageids` property.

[comment]: # ({/4b3e57f6-4b3e57f6})

[comment]: # ({b41637d2-b41637d2})
### Examples

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({925dee02-925dee02})
#### Delete multiple images

Delete two images.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "image.delete",
    "params": [
        "188",
        "192"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "imageids": [
            "188",
            "192"
        ]
    },
    "id": 1
}
```

[comment]: # ({/925dee02-925dee02})

[comment]: # ({1519e383-1519e383})
### Source

CImage::delete() in
*frontends/php/include/classes/api/services/CImage.php*.

[comment]: # ({/1519e383-1519e383})
