so I recently got a message that I have to remove a player from my data stores.
I’m really nervous about this here’s all I know
would I need to run a command or something in order to delete the player’s data?
Do I detect if the id is in the game and delete it there?
I’m so confused about this
I’ve tried running this command:
game:GetService(‘DataStoreService’):GetDataStore( ‘Starlight Avatar Data save0006’…tostring(id)):RemoveAsync(id)
would this be enough to do it?
The thing is it’s inside a table so I don’t know how I would get everything from the table.
Please help!
Removing it like that should be enough, as long as there isn’t any more data anywhere you saved about that user. I think its all dependent on what it says in the message if it is all the data then you need to make sure all the data is gone.
I ended up doing this
game:GetService(‘DataStoreService’):GetDataStore( ‘Starlight Avatar Data save0006’…tostring(id)):RemoveAsync(id,game:GetService(‘DataStoreService’):GetDataStore( ‘Starlight Avatar Data save0006’…tostring(id)))
so it should delete everything in there right?
Yeah, it should. Just make sure you do it anywhere a save for that user could be.
That’s not at all how RemoveAsync works. GlobalDataStore | Documentation - Roblox Creator Hub It only takes one argument.
If you dont know how to delete data i recommend you to:
Get this plugin to help you delete data
Plugin: https://www.roblox.com/library/701506235/DataStore-Editor
Tutorial: https://youtu.be/AA_fbfCXv2k
And/or
Take a look at this page in the developer hub:
About GDPR and CCPA | Documentation - Roblox Creator Hub