How to clear Azure Storage Emulator Data from command line?

◇◆丶佛笑我妖孽 提交于 2019-12-20 17:52:37

问题


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:

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:


Ops! My mistake, the correct command is:

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

.\AzureStorageEmulator.exe clear all


来源:https://stackoverflow.com/questions/38329345/how-to-clear-azure-storage-emulator-data-from-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!