[comment]: # translation:outdated

[comment]: # ({9dee678d-9dee678d})
# templatedashboard.delete

[comment]: # ({/9dee678d-9dee678d})

[comment]: # ({9a7f7f58-f76c3800})
### 説明

`object templatedashboard.delete(array templateDashboardIds)`

このメソッドは、テンプレートダッシュボードを削除することができます。

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

[comment]: # ({/9a7f7f58-f76c3800})

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

`(array)` 削除するテンプレートダッシュボードのID。

[comment]: # ({/276bf1c0-276bf1c0})

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

`(object)` `dashboardids`プロパティの下にある削除されたテンプレートダッシュボードのIDを含むオブジェクトを返します。

[comment]: # ({/73b9628f-73b9628f})

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

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

[comment]: # ({d5d697e7-5c967ef8})
#### 複数のテンプレートダッシュボードの削除

2つのテンプレートダッシュボードを削除します。

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

```json
{
    "jsonrpc": "2.0",
    "method": "templatedashboard.delete",
    "params": [
        "45",
        "46"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "dashboardids": [
            "45",
            "46"
        ]
    },
    "id": 1
}
```

[comment]: # ({/d5d697e7-5c967ef8})

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

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

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