Remove a User ID from the data store?

I don’t script so I’m not sure what to do. Can somone explicitly tell me when I need to do to get this out. PLEASE HELP

4 Likes

Ok this is pretty simple heres an example of what you are gonna do:

Game:GetService('DatastoreService'):GetDatastore('DataStoreName'):RemoveAsync(UserIdHere)

Now this may not work, so itd help if you showed how you save data so I can confirm that this works for you!

2 Likes

Where do i put that?

[Ignore this text]

you can paste it in the command bar

[char limit]

1 Like

In-game I can?

Ignore this text

Why does this message happen? Did somone do somthing?

uh oh

It’s DataStoreService not DatastoreService (Store has a capital S)

3 Likes

Not capital T, capital S.

eeeeeee

1 Like

oop yea

same thing ig i typed it right
welp time to edit my message and pretend that didnt happen
ty

2 Likes

Did you find a solution for the issue then?

2 Likes

It might be better to automate a bot to do it for you. Roblox does provide documentation for this (although outdated), and teaches you how to use a platform like Discord or Guilded to manage this for you. It uses a webhook from your Roblox account to send a message at Discord, which a bot will detect. The documentation includes some Python code (which doesn’t entirely work), so I will provide a bare-bones JavaScript example:

JavaScript code example
//constants
const {Client, GatewayIntentBits, Partials} = require("discord.js"); //Discord bits
const token = ""; //your bot's login token
const apiKey = ""; //your OpenCloud API Key

//create a new Discord client
const bot = new Client({
    intents: [ //the bot's intents, e.g. what permissions you set it up with
        GatewayIntentBits.Guilds,
        GatewayIntentBits.GuildMessages,
        GatewayIntentBits.MessageContent,
        GatewayIntentBits.DirectMessages
    ],

    partials: [
        Partials.Channel,
        Partials.Message
    ]
});

//when the bot has logged in
bot.on("ready", () => {
    console.log("Bot has logged in and is listening to Right of Erasure messages.");
});

//when a message is sent
bot.on("messageCreate", message => {
    /*
    do things with the message content here. If you included a secret
    when making your webhook, you'll need to check the Roblox-Signature.
    Format the message into your URL, and send it along a HTTP request
    to the OpenCloud API to remove the target's data. You can use the
    fetch() function to send this HTTP request, it returns a Promise
    object.
    */
});

//log the client in
bot.login(token);

Note this requires the discord.js module. I think the easiest way would be installing Node.js and creating a project using that. You can do this by first installing Node and adding it to PATH, then putting these two bits of Bash code in the command line:

npm init -y
npm install discord.js

Automating Right to Erasure Requests | Documentation - Roblox Creator Hub


Disclaimer: The code sample I provided (under the “JavaScript Code Example” dropdown) requires editing from you. The code sample I provided on its own is not a sufficient way to manage Right to Erasure requests - it was only a bare-bones example or an outline of what you would need to do in order to create such a system. I will not accept responsibility for incorrect processing of Right to Erasure requests through the code sample I provided above.

1 Like

Basically just ignore it nothing happens anyway

1 Like

Really?

please ignore this text

this whole conversation is why data erasure requests should be an in-house thing.
not everyone understands basic programing.

here, I always found this helpful when I need a refresher on how to do a data erasure request if I ever end up receiving one:
Right to Erasure / Deleting Player Data from Datastores

Note: If your game isn’t collecting player data, you probably don’t need to worry. Roblox sends these messages out to every game that user had played.
Though, to be safe, I always follow through with them anyway just in case.

2 Likes

Thats a good point, @Confused_Cr3ator do you save data at all in your game?

1 Like

Idk ive gotten these messages from roblox and when i look up the account from its id, its some old account from like 2009 that hasnt been active in years

I typically ignore them and nothing has ever come of it

1 Like

This happens when an user gets permanently terminated and roblox wants you to remove his data from your game.

My message box has been spammed with over 1,000 of these messages, I’ve done nothing about it over the last 3 years and nothing has happened.

But still, if for some reason you want to abide to what a roblox bot message says, you can install the Data Store Editor plugin to remove the data easily.

2 Likes

Not necessarily. It could be Roblox wanting to remove data after an account was terminated, but primarily right to erasure requests are initiated by the user who wants to completely delete the account and data associated with it. This is because Roblox as a company, as well as game devs on the platform, have to comply with data privacy laws in various countries and/or states.

Roblox doesn’t discriminate whether or not your game is collecting data, they just know whether or not the game was even played.

3 Likes