I can't remove keys from a datastore

I am trying to remove some keys from the datastore I am using.

-- This is an example of what I am doing
DataStore:RemoveAsync("player_"..PLAYERID)

I ran RemoveAsync() many times but yet the key still exists. And yes, I did enter the name of the key right.

Does the key data remain or it gets deleted but the key still stays

The thing is I have to delete the key, its not about the data

I believe using :RemoveAsync() only sets the associated data to nil, consider checking if the data is nil instead of the database key.

Yes, it returns nil for the value but is there any way I can get rid of the keys using a script?

1 Like