Rather than changing the key, is there any way I can cycle through and remove the contents of an ODS?
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.