> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/mutations/user-profile/delete-a-user-account.md).

# Delete a User Account

Delete a user account

The `deleteMyProfile` mutation allows deleting a user account permanently.&#x20;

{% hint style="info" %}
&#x20;If you delete your account, your profile, and all your information related to recipes, meal plans, etc will be permanently deleted and cannot be recovered.
{% endhint %}

Once your account is deleted, it can be created with the same name and email.

## Requirements

* To have the [sg-user header](https://docs.suggestic.com/graphql/graphql/graphql-playground) which will indicate which account will be deleted.

## Available Fields

| **Field** | **Type** |       **Description**      |
| :-------: | :------: | :------------------------: |
| `success` |  boolean | Description of the result. |

## Examples

The following examples will delete a user account

### GraphQL Example

{% tabs %}
{% tab title="Mutation" %}

```graphql
mutation {
  deleteMyProfile {
    success
  }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "deleteMyProfile": {
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}

### curl Example

```javascript
curl --location --request POST 'https://production.suggestic.com/graphql' \
--header 'Authorization: Token <partner-token>' \
--header 'SG-User: <user-id>' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation { deleteMyProfile { success  } }"}'
```
