title: Clean up the customer billing and shipping address in the Magento
body: <p>I want to delete all the address associated with the customer in the Magento(billing and shipping address). How can i do this programatically? Can somebody help me out? </p>
  
  <p>I am using this code:</p>
  
  <pre><code>    $customer = Mage::getModel('customer/customer');
      $customer-&gt;setWebsiteId(Mage::app()-&gt;getWebsite()-&gt;getId());
  
      $customer-&gt;loadByEmail((string) $_REQUEST['email']);
  
      $address = Mage::getModel('customer/address');
  
      $address-&gt;delete();
  </code></pre>