@plentymarkets/shop-api / deleteBlocks
Function: deleteBlocks() ​
Defined in: api/deleteBlocks/index.ts:31
Method deleteBlocks - Used to delete blocks.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
identifier: id of the category/item or url of immutable page. type: block type - one of immutable, category, product
Returns ​
Remarks ​
- Calls /rest/storefront/blocks
- Method should be used to delete all blocks for the given type and identifier.
Example ​
ts
const { data } = await useSdk().plentysystems.deleteBlocks({
identifier: '0',
type: "product",
});