Delete product programmatically in magento

Mage::register("isSecureArea", true); 
$productId=24; //product id
try{
Mage::getModel("catalog/product")->load($productId)->delete(); 
echo 'delete';
}catch(Exception $e){
Mage::log($e->getMessage());
}