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

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

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

`object graph.delete(array graphIds)`

このメソッドは、グラフを削除することができます。

::: noteclassic
このメソッドは、*Admin*および*Super admin*タイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細は[ユーザーの役割](/manual/web_interface/frontend_sections/users/user_roles)を参照してください。
:::

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

[comment]: # ({54514063-54514063})
### パラメーター

`(array)` 削除するグラフのID。

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

[comment]: # ({eb5c8bd8-eb5c8bd8})
### 戻り値

`(object)` `graphids`プロパティの下にある削除されたグラフのIDを含むオブジェクトを返します。

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

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

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

[comment]: # ({44ebaf66-3a78f2ec})
#### 複数のグラフの削除

2つのグラフを削除します。

[リクエスト](/manual/api#performing-requests):

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

レスポンス:

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

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

[comment]: # ({e06af123-e06af123})
### ソース

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

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