Skip to main content

StaffBulkDelete

Deletes staff users. Apps are not allowed to perform this mutation.

Requires MANAGE_STAFFpermission.

Triggers the following webhook events:

  • STAFF_DELETED (async): A staff account was deleted.
type StaffBulkDelete {
count: Int!
staffErrors: [StaffError!]! @deprecated
errors: [StaffError!]!
}

Fields

StaffBulkDelete.count ● Int! non-null scalar miscellaneous

Returns how many objects were affected.

StaffBulkDelete.staffErrors ● [StaffError!]! deprecated non-null object users

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

StaffBulkDelete.errors ● [StaffError!]! non-null object users

Returned By

staffBulkDelete mutation