cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete cms page and staic block pragrammatically in magento 1.9.1.1

how to delete cms page and staic block pragrammatically in magento 1.9.1.1

 
1 REPLY

Re: how to delete cms page and staic block pragrammatically in magento 1.9.1.1

//delete not loaded yet object
Mage::getModel('cms/block')->setId($yourId)->delete();
Mage::getModel('cms/page')->setId($yourId)->delete()

//delete already loaded object
$block->delete();
$page->delete();