Skip to main content

Delete Account

The deleteAccount mutation allows a user to delete their own account. Admins can also use this mutation to delete any user account.

Mutation: deleteAccount

Schema:

deleteAccount: String

Parameters

  • None

Return

The mutation returns a string containing the email address of the deleted account.

Example Mutation

The following is an example of how to use the deleteAccount mutation to delete an account:

mutation {
deleteAccount
}

In this example, the mutation deletes the current user's account and returns the email address of the deleted account.