Now Edit config.xml :
Go to Magento/app/code/local/PG/Deletecc/etc/config.xml and paste the following xml code into it

Edit /controllers/Sales/OrderController.php:
Paste the following php code into Magento/app/code/local/PG/Deletecc/controllers/Sales/OrderController.php (the only change we’re doing to the indexAction() is adding an error_log() message):