Rather than changing the key, is there any way I can cycle through and remove the contents of an ODS?
COMMUNITY QUESTION
Is there a method of clearing an OrderedDataStore?
1 answer
What @addictedroblox1414 said is essentially true, but he doesn't explain quite how.
Theres a function to get DataStorePages from an ODS, OrderedDataStore:GetSortedAsync() with arguments you can view here.
Now, for the Pages you can cycle through using DataStorePages:GetCurrentPage() with no arguments. This returns a array<dictionary<string, Variant>>. Cycle through that array and check for elements as you'd like, or, just remove.
Be warned though, as theres a limit to everything.
This page offers a good explanation and examples, if I wasn't clear enough for you.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You could cycle through and change the value to 0 (or whatever you have set the minimum to)