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

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

[comment]: # ({0a94a9d5-60f587fa})
### Apraksts

`object image.delete(array imageIds)`

Šī metode ļauj dzēst attēlus.

::: noteclassic
Šī metode ir pieejama tikai *Super admin* lietotāja tipam.
Atļaujas izsaukt šo metodi var tikt atsauktas lietotāja lomas iestatījumos. Plašāku informāciju skatiet
[User
roles](/manual/web_interface/frontend_sections/users/user_roles).
:::

[comment]: # ({/0a94a9d5-60f587fa})

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

`(array)` dzēšamo attēlu ID.

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

[comment]: # ({4b3e57f6-4b3e57f6})
### Atgrieztās vērtības

`(object)` Atgriež objektu, kas satur dzēsto attēlu ID zem `imageids` īpašības.

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

[comment]: # ({b41637d2-b41637d2})
### Piemēri

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

[comment]: # ({caf12312-925dee02})
#### Dzēst vairākus attēlus

Dzēsiet divus attēlus.

[Pieprasījums](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "image.delete",
    "params": [
        "188",
        "192"
    ],
    "id": 1
}
```

Atbilde:

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

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

[comment]: # ({dfdead8e-dfdead8e})
### Avots

CImage::delete() failā *ui/include/classes/api/services/CImage.php*.

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