删除

描述

object image.delete(array imageIds)

此方法允许删除图像.

参数

(数组) 要删除的图像ID.

返回值

(对象)imageids属性中返回已删除图像ID的对象.

示例

删除多个图像

删除两个图像.

请求:

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

响应:

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

来源

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

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.