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
Jesper Wilfing
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