# deleteMyAppData

mutation · in the family [Your own session](/reference/your-own-session/)

## What it does

Remove one of your saved preferences. Removing a name that isn’t there refuses — nothing silent.

Remove ONE of your own app-private values. Requires authentication.

## Who may call it

Capability area: **Your own session** — What every signed-in person may do for themselves — their session, their profile and their own work.

- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
- An API key whose scope allows `api:deleteMyAppData`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `app` | [String](/types/#scalars) `String!` | yes | No further notes. |
| `name` | [String](/types/#scalars) `String!` | yes | No further notes. |

## Returns

[Boolean](/types/#scalars) `Boolean!` — True or false.

## Example request

```graphql
mutation ExampleDeleteMyAppData($app: String!, $name: String!) {
  deleteMyAppData(app: $app, name: $name)
}
```

Variables:

```json
{
  "app": "<app>",
  "name": "Blue jeans"
}
```

Send it with the envelope naming the version: `"extensions": {"at": {"version": {"name":"genesis","number":0}}}`.

## Example response

```json
{
  "data": {
    "deleteMyAppData": true
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}
```

## Errors this call can answer

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `CONFLICT/*` — The record’s state, or a change made in the meantime, does not allow this; the codes are on the CONFLICT page. ([CONFLICT](/errors/CONFLICT/))
- `VALIDATION/VERSION_REQUIRED` — The request did not say which app version it came from. ([VALIDATION](/errors/VALIDATION/))
