[comment]: # ({cf547db2-cf547db2})
# graph.delete

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

[comment]: # ({f46de7e0-c740de99})
### Apraksts

`object graph.delete(array graphIds)`

Šī metode ļauj dzēst grafikus.

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

[comment]: # ({/f46de7e0-c740de99})

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

`(array)` dzēšamo grafiku ID.

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

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

`(object)` Atgriež objektu, kas satur dzēsto grafiku ID
īpašībā `graphids`.

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

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

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

[comment]: # ({44ebaf66-3a78f2ec})
#### Vairāku grafiku dzēšana

Dzēsiet divus grafikus.

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

```json
{
    "jsonrpc": "2.0",
    "method": "graph.delete",
    "params": [
        "652",
        "653"
    ],
    "id": 1
}
```

Atbilde:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "graphids": [
            "652",
            "653"
        ]
    },
    "id": 1
}
```

[comment]: # ({/44ebaf66-3a78f2ec})

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

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

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