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

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

[comment]: # ({783bd3ca-783bd3ca})
### Description

`object graph.delete(array graphIds)`

This method allows to delete graphs.

[comment]: # ({/783bd3ca-783bd3ca})

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

`(array)` IDs of the graphs to delete.

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

[comment]: # ({eb5c8bd8-eb5c8bd8})
### Return values

`(object)` Returns an object containing the IDs of the deleted graphs
under the `graphids` property.

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

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

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

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

Delete two graphs.

Request:

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

Response:

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

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

[comment]: # ({8e3e9f3a-8e3e9f3a})
### Source

CGraph::delete() in
*frontends/php/include/classes/api/services/CGraph.php*.

[comment]: # ({/8e3e9f3a-8e3e9f3a})
