public void DeleteStorageAccount(string name)
 {
     var delete = new DeleteStorageAccountCommand(name)
     {
         SubscriptionId = SubscriptionId,
         Certificate = ManagementCertificate
     };
     delete.Execute();
 }
        /// <summary>
        /// Used to delete a storage account
        /// </summary>
        private bool DeleteStorageAccount()
        {
            try
            {
                var delete = new DeleteStorageAccountCommand(Manager.StorageAccountName)
                                 {
                                     SubscriptionId = Manager.SubscriptionId,
                                     Certificate = Manager.ManagementCertificate
                                 };
                delete.Execute();
                Manager.WriteComplete(EventPoint.StorageAccountCreated,
                                      "Storage account " + Manager.StorageAccountName + " created");
            }
            catch (Exception)
            {
                Manager.WriteComplete(EventPoint.StorageAccountCreated,
                                      "Storage account " + Manager.StorageAccountName + " not created");
                return false;
            }

            return true;
        }