How to clear Azure Storage Emulator Data from comm

2019-04-04 02:31发布

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条回答
我命由我不由天
2楼-- · 2019-04-04 02:45

Ops! My mistake, the correct command is:

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator

.\AzureStorageEmulator.exe clear all
查看更多
登录 后发表回答