> 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

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  } }"}'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.suggestic.com/graphql/query/mutations/user-profile/delete-a-user-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
