API Stability Long-Term

The removeUser() GraphQL mutation may be used to remove a user from LogScale.

For more information on user authorization, see the Manage users & permissions documentation page.

Syntax

Below is the syntax for the removeUser() mutation field:

graphql
removeUser(
      input: RemoveUserInput!
   ): RemoveUserMutation!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  removeUser(input:
     { username: "bob" } 
  )
  { user { id, firstName } }
}
Example Responses
Show:
json
{
  "data": {
    "removeUser": {
      "user": {
        "id": "BdNu86JzopPkUCMSPRTcpJpi",
        "firstName": "Bob"
      }
    }
  }
}

Given Datatypes

For RemoveUserInput has one parameter. It's described below:

Table: RemoveUserInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 19, 2024
usernamestringyes Long-TermThe user name of the user to remove.

Returned Datatypes

The returned datatype RemoveUserMutation has one parameter, but several sub-parameters. Click on the link in the table below to see them.

Table: RemoveUserMutation

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 3, 2024
userUseryes Long-TermThe user to remove from the mutation. See User.