So I am a total newbie to cURL and I am trying to remove all the extra players I created during testing phase.
However I have no idea how to use the delete command with the REST API.
curl --location --request DELETE 'https://player-auth.services.api.unity.com/v1/users/<userId>' \
--header 'Content-Type: application/json' \
--header 'ProjectId: <projectID>' \
--header 'Authorization: Bearer <Id Token from Unity Authentication>'
I’ve got the USER id and Project ID entered by what is the Bearer? How do I get authorized to delete a user in this instance?
Or just let me delete from the Game Services window please!
Hi there,
apologies for the delayed response.
At this moment it isn’t possible to delete players directly.
There are a few possible solutions.
- Create a development environment for testing purposes and simply leave those test players.
- If you have already sent those events/users to your production environment, create a support ticket requesting for data deletion
- Create a new project on the dashboard and bind to your existing project.
Hi @SebT_Unity ,
If I set up a support ticket and give all the player IDs I want deleted, will they do it for me??
Already put a ton of users into my production database unfortunately.
Hi 8Bitgoose,
Unfortunately it would delete all data for that environment.
Do you have many players? If its a few test players it shouldn’t skew your results however if we are talking thousands the I could understand your sentiment.
I will add your feedback to delete players for our product managers.
We have about 20 test players. They just annoy me being there! Is there any use case for stopping the admin from deleting test users or is it just something in the pipeline that isn’t super urgent?
1 Like