Delete a User Account
Delete a user account
The deleteMyProfile mutation allows deleting a user account permanently. 
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
  }
}{
  "data": {
    "deleteMyProfile": {
      "success": true
    }
  }
}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
Was this helpful?