How Do I Remove An ID With Data Store From A Right to Erasure - Action Requested?

How Do I Remove An ID With Data Store From A Request ?

I Keep Getting Warning Signs And I’m Following Roblox’s Instructions

Please Help

I recommend using DataStore Editor by Sleitnick. It does cost 200 $RS though. But It is very helpful for searching through datastores and changing values. There is even a tutorial listed in the description.

1 Like

Is there no way without paying…

There likely is, but I have no idea.

1 Like
local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("datastore with name")

Datastore:RemoveAsync("key")

Will delete the key named "key" and the value associated from the datastore name "datastore with name".

You said you get a warning in output? Can you tell us what the warning is? Also maybe post the code you are trying to run.

2 Likes

The Code Im Running In Server Script Service

  1. local ServerStorage = game:GetService(“ServerStorage”)
  2. local DataStoreService = game:GetService(“DataStoreService”)
  3. local removePlayerDataEvent = ServerStorage:WaitForChild(“RemovePlayerData”)
  • – Reference to player data store (replace “PlayerData” with the name of your data store)
  1. local playerData = DataStoreService:GetDataStore(“PlayerData”)
  • local function onRemovePlayerDataEvent(userID)
  1. – Pattern for data store player key, for instance “Player_12345678”
  2. local dataStoreKey = “Player_” … userID
  • local success, err = pcall(function()
  1. return playerData:RemoveAsync(dataStoreKey)
  2. end)
  3. if success then
  4. warn(“Removed player data for user ID '” … userID … “’”)
  5. else
  6. warn(err)
  7. end
  8. end
  9. removePlayerDataEvent.Event:Connect(onRemovePlayerDataEvent)

Then This

game.ServerStorage.RemovePlayerData:Fire(“XXXXXXXX”)

With The ID In

It Says Removed Player Data And Has An Orange Warning Sign At The Start Of It ?
Does this mean anything

Also does this count as the ID Being Removed ? Has It Worked ? How Do I Check ?

I Really Want To Sleep Its Late And Im Trying To Fix So Please Help :grinning:

2 Likes

Also A Bonus Robloxs Article Also Shows A Warning Sign

Does That Code And All This Have Worked ?

Should I Also Shutdown The Game Or What Else Do I Do ?
Also The Account ID Is Deleted Is This Normal ?