# leaveProject

```graphql
mutation LeaveProject($projectReference: ID!) {
  leaveProject(projectReference: $projectReference) {
    ok
  }
}
```

Leave the caller's direct project membership while preserving inherited account access. Requires project.read; API keys also need delete scope.

## Arguments

| Name               | Type | Required | Description                                                                                        |
| ------------------ | ---- | -------- | -------------------------------------------------------------------------------------------------- |
| `projectReference` | ID!  | Yes      | Project UUID, slug or domain. Removes only your direct membership, never inherited account access. |

## Variables

```json
{
  "projectReference": "string"
}
```

## Responses

| Status | Description                                |
| ------ | ------------------------------------------ |
| 200    | The Acknowledgement! in data.leaveProject. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation LeaveProject($projectReference: ID!) {\n  leaveProject(projectReference: $projectReference) {\n    ok\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "leaveProject": {
      "ok": false
    }
  }
}
```
