[comment]: # translation:outdated

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

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

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

`object image.delete(array imageIds)`

Questo metodo consente di eliminare le immagini.

::: noteclassic
Questo metodo è disponibile solo per il tipo di utente *Super admin*.
I permessi per chiamare il metodo possono essere revocati nelle impostazioni del ruolo utente. Per ulteriori informazioni, vedere
[Ruoli utente](/manual/web_interface/frontend_sections/users/user_roles).
:::

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

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

`(array)` ID delle immagini da eliminare.

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

[comment]: # ({4b3e57f6-4b3e57f6})
### Restituisce i valori

`(object)` Restituisce un oggetto contenente gli ID delle immagini eliminate
sotto la proprietà `imageids`.

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

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

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

[comment]: # ({caf12312-925dee02})
#### Eliminare più immagini

Eliminare due immagini.

[Richiesta](/manual/api#performing-requests):

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

Risposta:

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

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

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

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

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