Delete

[POST] .../v1/item/delete

Deletes an item. Deletion is available only when the item is marked for deletion with deleted_mark = true. Use Item/DeleteMark to set the deletion mark. Use this destructive method to permanently delete a catalog item that has already been marked with deleted_mark. It deletes the item identified by id and returns row_affected; the intended workflow is Item/DeleteMark first, then Item/Delete after confirmation. The caller must have item delete permission and provide a positive id; missing request data, invalid id, denied access, unmarked or protected item state and persistent errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Item ID.

Request Example

{
  "id": 1
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}