Skip to content
Get started

Terminate employee

employees.terminate(employee_id) -> void
delete/v1/employees/{employee_id}

Terminates a specific employee. This sets the employee's active status to false and records a termination date. The employee record is not permanently deleted for compliance reasons.

ParametersExpand Collapse
employee_id: String
Terminate employee
require "vitable_connect_api"

vitable_connect_api = VitableConnectAPI::Client.new(
  api_key: "My API Key",
  environment: "environment_1" # defaults to "production"
)

result = vitable_connect_api.employees.terminate("empl_abc123def456")

puts(result)
Returns Examples