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

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

[comment]: # ({c740de99-c740de99})
### Description

`object graph.delete(array graphIds)`

This method allows to delete graphs.

::: noteclassic
This method is only available to *Admin* and *Super admin*
user types. 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]: # ({/c740de99-c740de99})

[comment]: # ({54514063-54514063})
### Paraméterek

"(tömb)" A törölni kívánt grafikonok azonosítói.

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

[comment]: # ({eb5c8bd8-eb5c8bd8})
### Visszatérési értékek

`(object)` Egy objektumot ad vissza, amely tartalmazza a törölt gráfok azonosítóit
a `graphids` tulajdonság alatt.

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

[comment]: # ({b41637d2-b41637d2})
### Példák

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

[comment]: # ({70e50e25-3a78f2ec})
#### Deleting multiple graphs

Delete two graphs.

Request:

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

Response:

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

[comment]: # ({/70e50e25-3a78f2ec})

[comment]: # ({e06af123-e06af123})
### Forrás

CGraph::delete() az *ui/include/classes/api/services/CGraph.php*-ban.

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