question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need ability to clear all storage

See original GitHub issue

Which service(blob, file, queue, table) does this issue concern?

All

Which version of the Azurite was used?

3.8.0

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

npm

What’s the Node.js version?

12.18.4

What problem was encountered?

I need to be able to clear storage like I could with Azure Storage Emulator using clear all, clear blob, etc.

Steps to reproduce the issue?

I’m working off the output from -h - it says nothing about the ability to do this.

Have you found a mitigation/solution?

No, I am new to Azurite so I’m unsure if there’s some “hack” you can do to effectively do this.

Use case: When developing with a technology like Durable Functions, which heavily utilizes queues, tables, and blob to maintain state of orchestrations it’s incredibly useful to be able to clear backend storage contents as a way to “restart” an orchestration debugging session.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:31 (22 by maintainers)

github_iconTop GitHub Comments

6reactions
brandonh-msftcommented, Jan 25, 2022

I’m fine if you want to propose that as a temporary workaround but not the permanent solution.

  1. It’s not affordable outside this work item - people would have to come find this to find that script line, nobody’s going to discover that on their own
  2. It’s not obvious what’s being done if you were to embed this in a script somewhere; you’d have to comment the line to point out what you’re doing here and why
  3. It’s not cross-platform except and unless somebody installs Powershell Core on their box, which shouldn’t be a prereq for using Azurite.

So what I’m saying is thanks, and I’ll use that if/when I get back to having Azurite as part of my daily dev workflow (I’ve moved on from Functions/DF work) but would much rather see something I can discover & interpret from azurite -h than a separate script I pulled from the bowels of the internet 😉

4reactions
codermrrobcommented, Jan 18, 2022

It is correct that the ability to clear or clean the storage while developing durable functions is really necessary. It is laborious to rely on deleting files - I must quit from Visual Studio before I can delete them, restart VS and run my durable functions and then repeat for every debug session. It’s a poor workflow.

I have also tried using the VSCode durable function plugin to delete the hub (nothing else seemed to work) but it is somewhat slow compared to previous CLI command for the old storage emulator.

I appreciate this is an open source project and if I find time I will do something about it. For now I just want to draw attention to this area, that for developers working a lot on durable functions Azurite breaks our development workflow in comparison with the old storage emulator.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Free Up Storage on Your Phone | iPhone, Android
For example, under “Audio,” long-press on one or more files and tap Delete. Or under “Apps,” tap the app's name and then Uninstall...
Read more >
How to free up space on your iPhone & Android phone - Asurion
The first thing you'll want to do is check to see which apps on your smartphone are the biggest users of space and...
Read more >
8 quick ways to free up drive space in Windows 10 - CNET
You can delete temporary files without running Disk Cleanup, along with files you downloaded that you may no longer need. Go to Settings...
Read more >
How To Clear System Storage On Android Phone - YouTube
How to free up storage space on All Samsung Galaxy phones · How to clear cache in samsung| atomically clear cache | Samsung...
Read more >
Free up drive space in Windows - Microsoft Support
Select Start > Settings > System > Storage > Cleanup recommendations. Review each of the categories, including Temporary files, Large or unused files,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found