Skip to main content

deleteEmployee

Deletes an employee by ID, together with the user account linked to it, both in the identity provider and in HuskyCare. Tenant admins only.

Employees who leave are archived (archiveEmployee) rather than deleted; an archived employee keeps their user account.

Requires authorization features: employee:user:delete

deleteEmployee(
id: EmployeeID!
): Boolean!

Directives​

auth​

Requires authorization features: employee:user:delete

Arguments​

deleteEmployee.id ● EmployeeID! non-null scalar​

Type​

Boolean scalar​

The Boolean scalar type represents true or false.