stable-structures
stable-structures copied to clipboard
how to delete/reset all data ?
I'm going to assume you're asking for a way to free up memory used by stable structures somehow. I'd recommend to add a few more details to the issue next time so it's easier for us to understand the use cases/what you have in mind.
Assuming I'm right about what you're asking for: we're actually working on a PR along those lines that would allow someone to free a memory id that was used before. Note that this does not really deallocate the underlying stable memory, but basically returns it back to the memory manager so it can be reused as needed.