Wipe profile service data without changing datastore name

I want to wipe data of entire datastore which is under control of profile service, is there a way of doing it? On API documentation I only saw method of wiping data of certain user but couldn’t find method for wiping it for all users

There is currently no way to do this, and for a good reason. In the internal code:

	else
		wipe_status = pcall(function()
			self._global_data_store:RemoveAsync(profile_key)
		end)
	end

If you are tying to wipe every key, you will have to reset the data manually when the player joins.

local function PlayerAdded(player)
    local profile = ProfileStore:LoadProfileAsync("Player_" .. player.UserId)
    if profile ~= nil then
        if player:IsDescendantOf(Players) == true then
            table.clear(profile.Data)
        else
            profile:Release()
        end
    else
        player:Kick() 
    end
end
1 Like

aw thats sad, anyways thank you