Welcome!

Open Source Authors: Michelle Drolet, RealWire News Distribution, Kevin Benedict, Michael Bushong, Matthew Lobas

Blog Feed Post

Azure CLI Day 33 – mobile table delete

bash-azure

In my previous two posts I showed you how to use the Windows Azure cross platform command line tools to:

In this post I’ll show you how to use the command line tools to delete a table associated with a Windows Azure Mobile Service.

Once again, just a reminder that I’m using the command line tools on a MacBook Air with OSX (Mountain Lion) 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 mobile table delete -h

Screen Shot 2013-10-14 at 1.41.39 PM

As you can see the azure mobile table delete command is the command to use to delete a table associated with a Windows Azure Mobile Service. To use the command you need to provide the name (servicename) of your mobile service and the name (table name) of the table you want to delete. Optionally, you can also specify if you want to bypass the confirmation prompt by using the -q or –quiet option.

Before proceeding to delete a table, first get a list of tables associated with your mobile service by entering the following, substituting where appropriate:

azure mobile table list ‘[YOUR MOBILE SERVICE NAME]‘

I used the following command:

azure mobile table list ‘zumo-00005′

Screen Shot 2013-10-14 at 1.46.09 PM

As you can see, my mobile service has three tables. To delete a table from your mobile service, enter the following into your CLI:

azure mobile table delete -q ‘[YOUR MOBILE SERVICE NAME]‘ ‘[YOUR TABLE NAME]‘

Since I wanted to delete the GenreMovie table, I used the following:

azure mobile table delete -q ‘zumo-00005′ ‘GenreMovie’

Screen Shot 2013-10-14 at 1.48.45 PM

Once the command completes you can verify the table was deleted by once again using the following, substituting where appropriate:

azure mobile table list ‘[YOUR MOBILE SERVICE NAME]‘

Once again I used the following:

azure mobile table list ‘zumo-00005′

Screen Shot 2013-10-14 at 1.50.29 PM

That’s it for using the Windows Azure Cross Platform Command Line tools to work with tables and data associated with a Windows Azure Mobile Service. In my next post I’ll start looking at how to use the tools to work with schedule jobs associated with a Windows Azure Mobile Service.

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.