This is a translation of the original English documentation page. Help us make it better.

image.delete

説明

object image.delete(array imageIds)

このメソッドでは画像を削除できます。

このメソッドはSuperadminユーザータイプでのみ使用できます。 メソッドを呼び出す権限は、ユーザーロール設定で取り消すことができます。 詳細についてはユーザーの役割を参照してください。

パラメータ

(array) 削除する画像のID

戻り値

(object) imageidsプロパティの下で削除された画像のIDを含むオブジェクトを返します。

複数の画像を削除

二つの画像を削除

Request:

{
           "jsonrpc": "2.0",
           "method": "image.delete",
           "params": [
               "188",
               "192"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "imageids": [
                   "188",
                   "192"
               ]
           },
           "id": 1
       }

ソース

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