graphql/graphql-delete-user

Delete User

Remove a user by ID

graphql
user
mutation

Command

curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"mutation { deleteUser(id: 1) { id } }"}'

Explanation

Deletes a user from the database. Useful for account removal or administrative cleanup.

Examples

Delete user with ID 5

mutation { deleteUser(id: 5) { id } }