Players API
Delete Player Data
Delete all data of one player with one DELETE request: the profile, traits, events of every browser and game install, labels, account links, and Steam data. Use it when a player deletes their account.
DELETE
Delete player data
Deletes all data of one player. Call it from your backend when a player deletes their account or asks you to erase their data. You cannot undo it.
The delete removes:
In your account delete handler:
Stop sending events for the player first. Otherwise new events make a new player.
- The player’s profile and traits
- All events of all the player’s browsers and game installs, and their stored sessions
- Labels, on every key of the player
- Account links (Steam, itch.io, Discord)
- Steam ownership, purchases, summaries, and wishlist and library data
- Revenue record links: the billing records of the player’s Stripe and Paddle customer IDs. An itch.io payment keeps its record without the user ID.
Authentication
Use an API key (mana_api_...) with the profiles:delete scope. See Authentication.
- The key works on its own project only. Another project’s key gets
404. - The key’s creator must be an owner or admin now. When the creator’s role goes below admin, the key loses
profiles:delete. - API keys for the REST API need the Studio plan (or a Studio trial). On Indie and the Launch Pass the answer is
402PLAN_UPGRADE_REQUIRED. - Call it from a server. A request with a browser
Originheader gets403. - The demo project is read-only:
403.
profiles:delete is a scope of its own. profiles:write (trait edits) does not include it, so a key that edits traits cannot erase players. Give the delete key only profiles:delete.
Path parameters
For an identified player, send the
user: key. It covers every browser and game install that links to that user only. An anonymous ID that belongs to one identified player gets 409 NOT_CANONICAL with that player’s key in error.player_key: delete that player.
Response
202:
The call is idempotent. Retry it after a timeout or a
5xx: a repeated call returns the same request while it runs. After it finished, a call for a player with new data starts a new delete.
Example
Errors
Authorizations
Path Parameters
Response
The delete is queued, or an earlier request of this player is returned
queued: this call started the delete. pending: an earlier request of this player still runs, and nothing new was queued. done: an earlier request finished, and Manalens has no new data of the player. failed: a job of the earlier request failed; contact support.
Available options:
queued, pending, done, failed