Skip to main content
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:
  • 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.
Postgres rows go at once. The analytics deletes run as background jobs. They finish within minutes. Reports change after that. Owners and admins can also delete a player in the dashboard: open the profile, open Danger zone at the bottom of the left panel, and click Delete player data.

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 402 PLAN_UPGRADE_REQUIRED.
  • Call it from a server. A request with a browser Origin header gets 403.
  • 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

In your account delete handler:
Stop sending events for the player first. Otherwise new events make a new player.

Errors

Authorizations

Authorization
string
header
required

An API key (mana_api_...) with scopes. It reads reports and writes player traits.

Path Parameters

projectId
string<uuid>
required

The project ID

playerKey
string
required

The player key: user: and the user ID that you send with identify (1 to 255 characters), or anon: and an anonymous ID (a UUID) for a player that never identified. URL-encode it, for example user%3Aplayer-42.

Required string length: 6 - 260
Pattern: ^(user|anon):

Response

The delete is queued, or an earlier request of this player is returned

request_id
string
required

The ID of the delete request. A repeated call returns the same ID while the request runs.

player_key
string
required

The player key

status
enum<string>
required

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
installs
object
required
deleted
object | null
required

The rows deleted at once (account links, owned products, purchases, Steam summaries and library state, itch.io matches, segment alert members, install match keys). Only on the call that started the delete; null on a repeated call.

jobs
string[]
required

The background jobs of the request: one per analytics datasource, raw_events last

message
string
required