BoolValue data store delete

Hello, I’m trying to delete a BoolValue from a BoolValue folder since deleting badge won’t work. I’ve tried clear(user, BoolValue) but it did not work and can’t find any other way to delete the data.

I’m not too sure but you could try setting the value to nil, that might remove it.
Well, depends how your stuff is saved, I save tables which setting a value to nil would remove it from the table and the datastore too I assume

While trying to change the Bool it says: 1: attempt to call a nil value in both studio and in game console. The script is supposed to change the value to false if the badge is not in the inventory but will only keep it at true using a folder.

Actually yes, you would set it to nil then save it with SetAsync

Check this

Is the value in a datastore or in a folder?

The Bool is in a folder
Capture33

The bool you want to remove, set it to nil then save it, after that remove it from saving again
That will remove it from the DataStore

It worked, thank you for the help!

1 Like