[comment]: # translation:outdated

[comment]: # ({629f1e7c-629f1e7c})
# httptest.delete

[comment]: # ({/629f1e7c-629f1e7c})

[comment]: # ({af6afc07-67a29a65})
### Descrizione

`object httptest.delete(array webScenarioIds)`

Questo metodo consente di eliminare gli scenari web.

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

[comment]: # ({/af6afc07-67a29a65})

[comment]: # ({16d66a94-16d66a94})
### Parametri

`(array)` ID degli scenari web da eliminare.

[comment]: # ({/16d66a94-16d66a94})

[comment]: # ({fd0832d6-fd0832d6})
### Valori di ritorno

`(object)` Restituisce un oggetto contenente gli ID degli scenari web cancellati
sotto la proprietà `httptestids`.

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

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

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

[comment]: # ({1f0b85e9-4924488e})
#### Eliminazione di più scenari web

Eliminare due scenari web.

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

```json
{
    "jsonrpc": "2.0",
    "method": "httptest.delete",
    "params": [
        "2",
        "3"
    ],
    "id": 1
}
```

Risposta:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "httptestids": [
            "2",
            "3"
        ]
    },
    "id": 1
}
```

[comment]: # ({/1f0b85e9-4924488e})

[comment]: # ({0ba69a51-0ba69a51})
### Fonte

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

[comment]: # ({/0ba69a51-0ba69a51})
