Shotstash
API referenceGraphQL referenceMutations

Delete User

Super admin only: deletes an account that has no uploads, share links or chat messages.

Super admin only: deletes an account that has no uploads, share links or chat messages.

Arguments

id*ID!

User id.

Returns

AdminActionResult!
  1. returns

Result of an admin action on a user account.

success*Boolean!

True when the action succeeded.

message?String

Human-readable message, null when none.

password?String

A generated password, returned once when adminSetPassword made one; null otherwise.

errorCode?String

Stable failure code (USER_NOT_FOUND, CANNOT_TARGET_SELF, SUPER_ADMIN_PROTECTED, USER_HAS_ACTIVITY, PASSWORD_TOO_SHORT, PASSWORD_TOO_LONG, INTERNAL); null on success.

uploads?Int

USER_HAS_ACTIVITY only: uploads that block the delete.

shareLinks?Int

USER_HAS_ACTIVITY only: share links that block the delete.

chats?Int

USER_HAS_ACTIVITY only: chat messages that block the delete.

mutation DeleteUser($id: ID!) {  deleteUser(id: $id) {    success    message    password    errorCode    uploads    shareLinks    chats  }}