[comment]: # ({4de11b33-4de11b33})
# trigger.deletedependencies

[comment]: # ({/4de11b33-4de11b33})

[comment]: # ({887d1196-887d1196})
### 説明

`object trigger.deletedependencies(string/array triggers)`

このメソッドで、指定されたトリガーからすべてのトリガー依存関係を削除できます。

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

[comment]: # ({/887d1196-887d1196})

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

`(string/array)` トリガーの依存関係を削除するトリガー

[comment]: # ({/88bd9ada-88bd9ada})

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

`(object)` `triggerids` プロパティの下で影響を受けるトリガーの ID を含むオブジェクトを返します。

[comment]: # ({/629871b3-629871b3})

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

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

[comment]: # ({739a65ed-49a2108e})
#### 複数のトリガーからの依存関係の削除

2 つのトリガーからすべての依存関係を削除します

Request:

```json
{
    "jsonrpc": "2.0",
    "method": "trigger.deleteDependencies",
    "params": [
        {
            "triggerid": "14544"
        },
        {
            "triggerid": "14545"
        }
    ],
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "triggerids": [
            "14544",
            "14545"
        ]
    },
    "id": 1
}
```

[comment]: # ({/739a65ed-49a2108e})

[comment]: # ({7a5d446d-7a5d446d})
### 参照

-   [trigger.update](update)

[comment]: # ({/7a5d446d-7a5d446d})

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

CTrigger::deleteDependencies() in *ui/include/classes/api/services/CTrigger.php*.

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