Deletes a staff member.
Deleting a staff member permanently removes them from the staff member list.
function deleteStaffMember(staffMemberId: string): Promise<void>;
The ID of the staff member to delete.
import { staffMembers } from "@wix/events";
async function deleteStaffMember(staffMemberId) {
const response = await staffMembers.deleteStaffMember(staffMemberId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.