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
Result of an admin action on a user account.
success*Boolean!True when the action succeeded.
message?StringHuman-readable message, null when none.
password?StringA generated password, returned once when adminSetPassword made one; null otherwise.
errorCode?StringStable 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?IntUSER_HAS_ACTIVITY only: uploads that block the delete.
shareLinks?IntUSER_HAS_ACTIVITY only: share links that block the delete.
chats?IntUSER_HAS_ACTIVITY only: chat messages that block the delete.
mutation DeleteUser($id: ID!) { deleteUser(id: $id) { success message password errorCode uploads shareLinks chats }}