[comment]: # translation:outdated

[comment]: # ({bc1a928b-bc1a928b})
# map.delete

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

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

`object map.delete(array mapIds)`

This method allows to delete maps.

::: noteclassic
This method is available to users of any 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-24398e69})

[comment]: # ({57a8b77a-57a8b77a})
### Parametri

`(array)` ID delle mappe da eliminare.

[comment]: # ({/57a8b77a-57a8b77a})

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

`(oggetto)` Restituisce un oggetto contenente gli ID delle mappe eliminate
sotto la proprietà `sysmapids`.

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

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

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

[comment]: # ({new-87539545})
#### Delete multiple maps

Delete two maps.

Request:

``` {.java}
{
    "jsonrpc": "2.0",
    "method": "map.delete",
    "params": [
        "12",
        "34"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```

Response:

``` {.java}
{
    "jsonrpc": "2.0",
    "result": {
        "sysmapids": [
            "12",
            "34"
        ]
    },
    "id": 1
}
```

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

[comment]: # ({4880bc2b-4880bc2b})
### Fonte

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

[comment]: # ({/4880bc2b-4880bc2b})
