Welcome!

Open Source Authors: Liz McMillan, Kevin Benedict, David Smith, Lori MacVittie, Ali Hussain

Blog Feed Post

Azure CLI Day 56 – sql server delete

bash-azure

In my previous post (http://thinkfirstcodelater.com/blog/?p=3570) I showed you how to use the Windows Azure cross platform command line tools to delete a SQL database. In this post I’ll show you how to use the tools to delete a SQL server.

Once again, just a reminder that I’m using the command line tools on a MacBook Air with OSX (Mavericks) installed, and I’m using Google Chrome as my default browser. However, the experience should be identical on Windows and Linux as well.

Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following:

azure sql server delete -h

Screen Shot 2013-11-26 at 12.18.19 PM

The azure sql server delete command is the command to use to delete a SQL server. The only parameter you need to specify is serverName, which, as you can probably guess is simply the name of the SQL server you want to delete. You can specify the -q, —quiet option if you want to suppress the confirmation prompt.

To delete a SQL server, enter the following into your CLI, substituting where appropriate:

azure sql server delete -q ‘[YOUR SQL SERVER NAME]‘

I entered the following:

azure sql server delete -q ‘woa74eflzv’

Screen Shot 2013-11-26 at 12.21.47 PM

Once the command completes, you can use the azure sql server list command (http://thinkfirstcodelater.com/blog/?p=3463) to verify the SQL server has been deleted.

Screen Shot 2013-11-26 at 12.23.12 PM

That’s all there is to it. In my next post I’m going to start looking at how you can use the Windows Azure cross platform command line tools to manage your Windows Azure storage accounts.

Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.

Read the original blog entry...

More Stories By Adam Grocholski

Hey there! My name is Adam Grocholski, and I'm a Technical Evangelist at Microsoft where I spend time focusing on Windows, Windows Phone, and Windows Azure. I live in the frozen tundra of Minnesota and run thinkfirstcodelater.com. You can also follow me on twitter at @codel8r.