Delete product
delete_productDelete one product or many to the bin (soft-delete, restorable). Send id for one product, which returns {error}. Or send ids (up to 1000) to delete many in one transaction, which returns {error, deleted: [id ...], errors: [{id, message} ...]}. That is partial success: ids this business does not own, or already deleted, are skipped and listed in errors, and error is true only when nothing was deleted. Document lines that used a product keep their own copies of name/price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | One product id to delete. | |
| ids | No | Up to 1000 product ids to delete in one transaction. Partial success: ids this business does not own are skipped and listed in errors. |