Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you delete a scope from a DataStore?

Asked by
Vrakos 109
10 years ago

Is it possible to delete a scope with DataStoreService?

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

I'm going to say "yes" in that you can make every key inside of that scope nil, but there isn't really a way or reason to do that.

You have a near-infinite number of scopes, and datastores for that scope, and keys for those datastores, so you should never run into any issues with having too much data to save (each key has a limit, but you can break that up by using scopes as you seem to be, and moving every 'key' up to the level of datastore.

In the case of you simply wanting to make a new set of data for some scope used in a previous version of the place, you can either make a unique identifier in the new datastores within that scope, and overwrite the data if it isn't present, or you can just use a differently named scope.

Ad

Answer this question