[comment]: # translation:outdated

[comment]: # ({a1e429c6-a1e429c6})
# valuemap.delete

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

[comment]: # ({new-b73af783})
### Description

`object valuemap.delete(array valuemapids)`

This method allows to delete value maps.

::: noteclassic
This method is only available to *Super admin* user type.
Permissions to call the method can be revoked in user role settings. See
[User
roles](/manual/web_interface/frontend_sections/administration/user_roles)
for more information.
:::

[comment]: # ({/new-b73af783})

[comment]: # ({db6b3809-db6b3809})
### Parâmetros

`(array)` IDs dos valores de mapa a serem deletados.

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

[comment]: # ({new-59feda24})
### Return values

`(object)` Returns an object containing the IDs of the deleted value
maps under the `valuemapids` property.

[comment]: # ({/new-59feda24})

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

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

[comment]: # ({41be3154-bf1c93a7})
#### Excluindo múltiplos mapeamentos de valores

Deletar dois mapeamentos de valores.

Requisição:

```json
{
    "jsonrpc": "2.0",
    "method": "valuemap.delete",
    "params": [
        "1",
        "2"
    ],
    "auth": "57562fd409b3b3b9a4d916d45207bbcb",
    "id": 1
}
```

Resposta:

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

[comment]: # ({/41be3154-bf1c93a7})

[comment]: # ({908d048e-908d048e})
### Fonte

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

[comment]: # ({/908d048e-908d048e})
