<?php

require_once 'app'.DIRECTORY_SEPARATOR.'Mage.php';
Mage::app();
$installer = new Mage_Eav_Model_Entity_Setup('catalog_setup');
$installer->startSetup();
try{
	echo "Start"."<br/>";
	$entityId = $installer->getEntityTypeId('catalog_product');
	$installer->removeAttribute($entityId, 'xero_sales_account_code');
	echo "Finished removing product attribute 'xero_sales_account_code'";
} catch (Exception $e) {
	echo $e->getMessage();
}
