Delete a User Account

Delete a user account

The deleteMyProfile mutation allows deleting a user account permanently.

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.

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

Requirements

  • To have the sg-user header 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

mutation {
  deleteMyProfile {
    success
  }
}

curl Example

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

Last updated