Skip to main content

Delete one or more records

Example DB Table

smartPanda.mdh.brand

CREATE TABLE `brand`
(
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`logo` text,
`logo_url` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`disabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);

API deleteBy*

smartPanda.mdh.brand.deleteBy* Delete records based on the filter conditions specified in the parameters.

Example Request

{
"method": "smartPanda.mdh.brand.deleteById",
"params": [
{
"field": "id",
"operator": "in",
"value": [
1,
2,
3
]
}
]
}

Example Response

3