There are some steps to delete a simple product through code.
1) Firstly include the Mage.php file.
2) after that load product id into the product model.
3) call the delete method to delete the product.
require_once('app/Mage.php'); //Path to Magento umask(0); Mage::app(); 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()); }