31
votes

My solution is using Azure Emulator. I would like to clear the Azure Storage Emulator Blobs, Queues and Tables without having to perform manual actions. I need to be able to do it from command line, preferably PowerShell.

Server Explorer in Visual Studio 2015, Azure-node:

enter image description here

AzureStorageEmulator.exe help returns the following commands:

  • AzureStorageEmulator.exe init: Initialize the emulator database and configuration.
  • AzureStorageEmulator.exe start: Start the emulator.
  • AzureStorageEmulator.exe stop: Stop the emulator.
  • AzureStorageEmulator.exe status: Get current emulator status.
  • AzureStorageEmulator.exe clear: Delete all data in the emulator.
  • AzureStorageEmulator.exe help [command]: Show general or command-specific help.

However when trying out "clear" the following is returned:

The following services have been succesfully cleared of user data: None

1

1 Answers

70
votes
cd C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator
.\AzureStorageEmulator.exe clear all