[comment]: # translation:outdated

[comment]: # ({ceca660a-ceca660a})
# script.delete

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

[comment]: # ({ad3a6f0d-db451e99})
### 説明

`object script.delete(array scriptIds)`

このメソッドは、スクリプトを削除することができます。

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

[comment]: # ({/ad3a6f0d-db451e99})

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

`(array)` 削除するスクリプトのID。

[comment]: # ({/17e2e442-17e2e442})

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

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

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

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

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

[comment]: # ({7b361f53-8184d373})
#### 複数のスクリプトの削除

2つのスクリプトを削除します。

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

```json
{
    "jsonrpc": "2.0",
    "method": "script.delete",
    "params": [
        "3",
        "4"
    ],
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "scriptids": [
            "3",
            "4"
        ]
    },
    "id": 1
}
```

[comment]: # ({/7b361f53-8184d373})

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

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

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